The only way this should be possible in a democracy is rarely and only by due process with a judge's order and ample safeguards, explicit conditions built into the law with no room for abuse by 'friendly judges' or 'overzealous' state machinery.
Anything else is a police state in the making. This is fundamental to the definition of a democracy and you can't dilute this without diluting the meaning of democracy at which point you should use some other word to describe your system.