Suppose two men don't agree about something. Then they must take their case to court. The judges will decide the case. They will let the one who isn't guilty go free. And they will punish the one who is guilty.
The guilty one might have done something that's worthy of a beating. Then the judge will make him lie down and be beaten with a whip right there in court. The number of strokes should fit the crime.
Suppose two brothers are living near each other. And one of them dies without having a son. Then his widow must not get married to anyone outside the family. Her husband's brother should marry her. That's what a brother-in-law is supposed to do.
But suppose the man doesn't want to get married to his brother's wife. Then she will go to the elders at the gate of the town. She will say, "My husband's brother refuses to keep his brother's name alive in Israel. He won't do for me what a brother-in-law is supposed to do."
Then his brother's widow will go up to him in front of the elders. She'll pull one of his sandals off his foot. She'll spit in his face. And she'll say, "That's what we do to a man who won't build up his brother's family line."
Suppose two men are fighting. And the wife of one of them comes to save her husband from his attacker. So she reaches out and grabs hold of his sex organs.
Don't have two different scales. You must not have one that weighs things heavier than they really are and another that weighs them lighter than they are.
And don't have two different sets of measures. You must not have one set that measures things larger than they really are and another that measures them smaller than they are.
The Lord your God will give you peace and rest from all of the enemies who are around you. He'll do it in the land he's giving you to take over as your very own. Then you will wipe out the memory of the Amalekites from the earth. Don't forget to do it!