Just like the left saying “you can’t legislate morality”.
Bullsqueeze. Laws inherently legislate morality. What the left means is “you can’t legislate YOUR morality, but we can legislate ours”.
The gist of “you can’t legislate morality” is that you cannot instill civility/morality simply by making laws. For example, we can codify to our hearts’ content when it comes to killing the unborn, but that will not change the heart of someone intent on making themselves the ultimate judge of right and wrong and taking that life anyway.