I like this law. I think promiscuous sex and sex outside marriage are immoral.
Sex is a natural need of the body. The people themselves came up with the rules of morality which are not enforceable. Marriage is a procedure that allows you to have your share of property upon divorce and all. Everything else is speculation.