Legislating it doesn’t stop it.
True. People still commit murder. People still run through red lights. People still steal.
But laws do have some effect on decent people.