Laws don't separate good from evil. They serve to legitimize (think of the root of that word) the exercise of certain behavior. But there can be good laws and evil laws. If you have trouble understanding this point, look at another country besides the US when thinking about it.