Elon will not be able to survive for long in opposition to Trump. All his businesses can turn negative in an instant. Moreover, he may also be subject to any legal complications. Trump usually takes his decisions as he says. What I understand is that if both of them do not come forward to solve this problem, then it is not possible for anyone to solve it. In such a conflict, both are likely to lose. According to the law, Trump will be able to stay in power for the next few years. During this time, he can implement any decision he wants. At the stage the situation has reached, it is hard to establish a good relationship between the two of them as before?
That's not entirely true. In a sovereign country like the United States, power is separated, and the president can also be sued and impeached even while in office. The President will not easily accuse or oppress someone.
The only thing Trump can do to hurt Elon is cancel government business contracts and impose taxes on Elon's company. Also, he can't do anything more if Elon hasn't broken the law, but that doesn't mean Elon doesn't have the right to appeal or counter-claim to the Supreme Court.
Remember during the campaign: Gates or Taylor Swift publicly criticized Trump but did you see what happened to them? Elon understands that better than anyone, and that's why he's not afraid to publicly debate Trump. Not to mention, the Democratic Party is the opposition to the Trump administration, Elon can also switch sides for protection.