You are essentially saying “The enemies of a government seek to undermine it so let’s stop people from talking to each other.”
I mean how is that logic different from what Stalin did during the Soviet Union? “The capitalists want to overthrow us, let’s deploy the totalitarian surveillance state to control and monitor the people to stop them from rising up”.
And how is any of this logic compatible with democracy or human liberty?