Boycotting of course is not illegal.
What is illegal is attacking Tesla dealerships and attempting to damage and destroy their vehicles which has happened several times recently by crazy radical leftists.
"Tesla facilities face wave of attacks as Elon Musk delves into politics
In one case, a 40-year-old woman is accused of vandalizing a Tesla dealership in Colorado in five separate incidents in recent weeks."
"There have been at least a dozen of vandalism against Tesla vehicles, dealerships or charging stations in recent weeks, according to police and local reports, underscoring the backlash Musk has faced since taking on an unprecedented role in the federal government."
www.nbcnews.com
Courts aren't the law. They're supposed to uphold the law, not block upholding the law which is all they've been doing. We don't elect judges to set policy, we elect representatives and the president to do that, judges have NO SAY in policy at all because the people have no way to get rid of them via elections. If judges are somehow the end all be all of everything then there really is no need for Congress or the presidency to even exist because all policy would just come from the courts and whatever they decide.