Government regulation of morality/ethical behavior is required for societal stability and is done so through laws preventing violence and the removal of elements that threaten personal freedoms. The balance of this process is corrupted when religion is used for the implementation of these regulations as the laws are inherently biased against anyone of differing opinion.
Unless these regulations fall under these categories:
Prevention of violent action.
Protection of the citizenry.
Majority approved Constitutional adjustment.
....and a few others....
The regulation becomes an invasion of rights.