@gutocarvalho I agree with those points: companies must follow the laws of the countries they operate in, and there should be a judicial system to arbitrate disputes about the law. But in the articles I've read [0] about the matter, it sounds like a struggle between X and Supreme Court Judge de Moraes. In my (essentially British) legal tradition, judges decide cases and rule their courts, but do not generally issue orders and never start investigations.
[0] E.g., https://www.cbc.ca/news/world/brazil-lula-x-musk-1.7309481