The Pedo guy was one of the dumbest things Elon has done. But it's worth noting that the guy had used a sexually explicit insult against Elon on TV immediately before that. It didn't come out of nowhere.
Elon stupidly went much further. Elon is mean to people who are mean to him and nice to people who are nice to him. That makes him kind of easy to manipulate.
Neurotypicals (and those with higher social intelligence) know you're supposed to pretend to be nice to people who are mean to you.