Okay, so why do we impose limits on some behavior and not others? There's no laws against how much I can donate to charity, but there's laws that say I can't steal or murder. Why?
Laws can't inherently prevent immoral behavior, but they provide deterrents as well as punishments on those who don't tow the moral line of the government.