I am amazed at those who have no comprehension of what the law did.
God gave moses 10 commands, he then gave some others and made the children of Isreal make an oath that the would confirm every word written in that law and that they would also obay every word, failure to do so would bring them under a curse.
Paul understood it (gal 3) as did james, when he said if we kept the whole law yet fail in one point, we are guilty of all.
From the point the law was confirmed, if you commit a sin, You are found guilty of the law, it did not matter how small or seemingly insignificant that sin was, it was still a sin, and the penatly fo that sin was to be cast out, or death.
Imagine 2 lands, one land dead and empty, the other alive and full of life, the dead and empty land is where the murderers and adulterers and sexually immoral people were sent, well when you commited that small seamingly insignificant sin, you were sent to that dead empty land with the murderers, adulterers and sexually immoral people, because you are just as guilty as they are.
Once you have been cast out, the number of sins you commit the rest of the time there does not matter, your guilt was secure with the one sin.
Once a year, on the day of atonement, the high priest would make sacrifice for his sin, and the sin of the people, if God accepted that sacrifice, all people are brought back from the land of the dead, and returned to the land of the living, until their next sin, where they are again cast out to the land of death (the penalty of sin is death) until the next day of atonement where again, the high priest makes atonement and the people are restored to life.
These laws were written in stone, they were written not to show poeple how to be righteous, but to prove their guilt when they are tried and found guilty, each time guilt is sentenced, so that people could not claim they did not do anything wrong, just like paul said, the commandment came and i died.
These things were given as a tutor or schoolmaster. As each year the people saw their guilt, saw their judgment and looked to the day of atonment, this was supposed to carry on every year until christ came, the true lamb of agid who wouod die once, for the sins of the poeple. So that no more would the smallest sin (any sin for that matter) cause death, meaning the poeple could take this good news, recieve it. And take this good news, understand the true love of God, and use this as an example to share god with others, and serve and love others, because we have been forgiven, we have the capability to love
The thought that these ten commands which could do nothing but condemn the person who breakes them just 1 time, no matter how small that sin might be, is written on our hearts so we can learn how to be righteous, is one of the most ridiculous things i have ever heard. It could not teach the people to whom it was given how to live righteous lives, all it could do is prove them as guilty their fist sin, and cause them to be cast out. So how is it supposed to help us?
Again, if you do not know adultey is a sin, you have more issues than anyone here can help you with.