That kind of shit is common with authoritarian governments: make lots of things illegal with tough punishments but don't enforce it, so everyone is routinely breaking the law. Now if they want to get rid of someone, for whatever reason, they have an excuse to because they've broken some obscure law.
And that includes governments that one would not automatically think of as "authoritarian governments", such as the UK. There's a case making its way through the system at the moment based on "possessing information useful to a terrorist organization" under section 58 of the Terrorism Act 2000 and it's clear from the way the law was drafted that it was intended to be one of those kind of laws.
Section 58 of the Terrorism Act 2000 creates the offence, liable to a prison term of up to ten years, to collect or possess "information of a kind likely to be useful to a person committing or preparing an act of terrorism".
If you're a journalist who has a list of MPs addresses (a quite reasonable and legitimate thing to possess) you have "information of a kind likely to be useful ... terrorism", or a student with a chemistry textbook that includes information that could be used to make explosives you have "information of a kind likely to be useful ... terrorism", and so on.
There is nothing in the law itself that requires intent, mere possession of "information of a kind likely to be useful to a person committing or preparing an act of terrorism" is sufficient. The government can choose, on a quite arbitrary basis, who will and who will not be prosecuted for this offence. Most people possess
some information that could conceivably be used by a terrorists, such as a map, and could quite legally be arrested and swept off the street at any time.
If you ask awkward questions about the existence of laws like this you're likely to get a reply like "Well of course
we wouldn't use it like that", but the very existence of a law that
could be lawfully used like that is a direct insult to the idea of democracy. Parliament failed on this one to ask the question that should always be asked about laws like this - "What could this law do if put into the hands of my worst enemies?".