The majority of people at one point in the UK lived in relatively poor hygiene compared to now, laws and actions were implemented to resolve this, for a very long time (many decades), the state of did not improve and many people were in violation of various laws. During this time, some people ended up prison for making available some of the worst living conditions available.
Before comparisons are brought on regarding it being incomparable, I beg to differ - As we all climb the 'Maslow' pyramid, the focus of laws on what parts of life become more relevant in today's society.
If the majority thought the law should exist, they would obey it.
Many people agreed, many people didn't agree, many people didn't know and many people didn't care regarding hygiene - Many did not obide by the laws for numerous decades. I don't see this being much different. You just happen to be one of the people who disagree in my example.
If the majority do not obey it AND they are not insane, then they do NOT support the law existing and would vote against it.
I like how you just justified some of the worst existing democracies (which are more dictatorships ran out of fear) out there.