“Anyone who scrawls a swastika on a Tesla has obviously committed a hate crime,” Mr. Musk wrote on social media this week.