I think we in the world today living in AD don't realize that in the times of the old testament the Earth was an absolute cesspit of evil. Things such as child sacrifices were not a small thing hidden in some remote villages, but were an open thing and practiced by the nations. They were much closer to the spirit world in those days where sorcerers witchcraft, were reverenced and feared throughout the lands, the magicians even rivalled Gods miracles during the time of Moses, written in the bible.
Women and children in those days were property of men and were of little use. The nation of Israel was the greatest nation on the Earth and was known for its great wealth and power, its kings were renowned and its God was feared among the lands, many Kings such as the king of babylon confessed that the God of Israel was the one true God. But even though God was with Israel the people were still a stiff necked people, and so God gave them comandments such as stone the women caught in adultery. Jesus said the reason why Moses gave you that command was because of the hardness of your hearts. I interpret this to mean that stoning the women was Gods mercy upon the women, for the alternative would be to live with their hard hearted husbands, who because of their unfaithfullness, would probably treat them like a dog, they would also be set free to marry another wife if their wife is killed. But today because Gods spirit is upon the Earth who softens mens hearts, we no longer stone women who commit adultery, but instead are commanded to forgive them.
That's what I think