Any risk Elon's taking is peanuts compared with George Washington taking on the world's leading colonial power...
But yes, confiscation of all his property and even the gallows (fortunately or unfortunately for everyone else) is not a risk Musk is facing yet.