Musk also has the right to free speech. He can say what he wants, as his personal opinion.
It’s using technology to impersonate someone that’s wrong, but I don’t know if our laws have kept up. I don’t think there’s a limit unless the person impersonated sues for slander or something. It is further muddied that public personalities have less protection and parody is legally protected