They will defend their customer interests by staying able to do business in Brazil..
Lets remember that Twitter is not their only customer..
So if twitter has problem with some country justice it is their problem to solve, not a problem to be shared with every other Cloudflare customer..
Also, i doubt that they are making more money from Twitter then every other customer in Brazil added together..