It helps to be small & pragmatic. People (mostly) follow the rules and politicians (mostly) only implement rules with broad support. Police have wide discretion to apply laws and (mostly) do this to benefit public good.
That's not to say we don't have problems, of course, but this particular law is seen as a compromise approach to public health that more-or-less works for everyone.