It gets more complicated with international relationships though. If two countries have any kind of relationship, e.g. trade, then a conflict between a company and a government can escalate and bleed out to other relationships.
In this case, the Myanmar government could tell the US that "hey buddy, SpaceX isn't playing ball, make them or we'll kick out your embassy, tourists, and trade relationships". I don't know if they have any of that, but take that as an example.
Sure, but given that the USA isn't a dictatorship on paper, there would have to be some law forbidding SpaceX from doing what they are doing or at least some incentive like the lucrative government contracts. But that's just diplomacy between nations. Consider a country that the USA doesn't give a shit about complaining. They wouldn't stop SpaceX they would tacitly encourage them in fact.
In this case, the Myanmar government could tell the US that "hey buddy, SpaceX isn't playing ball, make them or we'll kick out your embassy, tourists, and trade relationships". I don't know if they have any of that, but take that as an example.