Look, if a judge has such a right, a corporate lawyer usually has an idea that such a request might come. Companies that do not break law must do what is needed to make sure they will not violate any laws – neither now nor in the future. Or WhatsApp may say – sorry Brazil, we do not think that complying with your laws would be appropriate for us and stop servicing Brazilian numbers until laws are changed. But it's just not right to ignore country laws as long as that country is not US.