Social media company X says it will close its operations in Brazil, after claiming a judge on the country’s supreme court threatened to arrest its legal representative in Brazil if the company did not comply with his orders.