If you look at the ten commandments as a boundary around something, instead of a obstacle to something, you will see that God’s laws are situated in places that make real life possible. They are rules of freedom. You may not commit adultery, as in, you are free to have functioning marriages. You may not covet, as in, you are free to live your own life, unsoured by sidelong glances. You shall not worship other gods, as in, you are free from that bondage. You do not need to not sacrifice your children in some pagan festival. You shall not murder, as in, you shall be free to live without blood guilt.