Specifically look at the wording of 'In conformity with the interests of the toilers, and in order to strengthen the socialist system...' in the soviet version. Working class speech is protected, working class media is protected, the ability of hte working class to gather is protected, etc. Anti working class perversions of these things are the issue. Someone trying to own media privately to peddle anti communism and/or to personally profit is a problem. Someone trying to gather with the goal of organizing a counter revolution is a problem. Really its the same shit liberal states do but the opposite, where they are more than happy to prohibit proletarian speech and working class demonstrations. Socialist states however never felt the urge to dress it up in nice words and were pretty straight up about it.
At least this is all the concept and the goal. This isnt to say there have been 0 mistakes ever, or that it worked as intended all the time, this is just the general idea behind these things.