In practice you need to either disallow people entering private rooms or force them to take off
Well, I could do that anyway but that’s not what the law is about.
The law says, who uses such a device in a private room (restroom, bedroom), goes to jail for several years.
So it doesn’t need me to tell that person “do not enter” or anything.
There is another law (harder to explain in foreign language) that forbids to create or have (!) any devices that do recording and telecommunication but look like something else.