Just so we are clear, you're saying that Twitter/X should continue to operate in the country so it'll be subject to their law instead of choosing up shop and avoiding dealing with what they think are unreasonable demands?
If Twitter doesn't want to follow the laws of Brazil, then they need to stop providing access to Brazil.
Merely having no office in some country not sufficient, for the same reason it wasn't sufficient for preventing New Zealand based Kim Dotcom to be prosecuted (and his Hong Kong-based Mega Upload domain to be seized) by the USA.
Or all the defamation suits against US citizens filed in the UK on the grounds that being published on the internet counted as if it was published in the UK, forcing the US (Federal and State) to pass laws preventing payment of penalties in such cases: https://en.wikipedia.org/wiki/Libel_tourism
Edit:
Just found an interesting claim, thought I cannot verify it myself:
"Under Brazilian law, social networks must have a representative to receive and consider government takedown notices about political misinformation. X has no such person after closing down its Brazil office. Moraes gave the X platform 24 hours to name a new legal representative or face a nationwide suspension." - https://www.siliconrepublic.com/business/x-brazil-suspension...