Twitter has every protected right to criticize the president (which they should have been doing a whole lot more of but that's a different discussion). That's the whole point of "freedom of speech" in our Bill of Rights. Our government literally cannot do what Trump wants to do, and to try to say that he can is to explicitly say that the Constitution is meaningless and void.