The 10 commandments don't say to not punish those who break the commandments.
Numbers 15:32-35
32 And while the children of Israel were in the wilderness, they found a man that gathered sticks upon the sabbath day.
33 And they that found him gathering sticks brought him unto Moses and Aaron, and unto all the congregation.
34 And they put him in ward, because it was not declared what should be done to him.
35 And the Lord said unto Moses, The man shall be surely put to death: all the congregation shall stone him with stones without the camp.
Of course the penalty for blatantly breaking the commandments would be death. Ordered By God.
You may find the death penalty to be harsh for "minor" offenses, but perhaps God does not.
Numbers 15:32-35
32 And while the children of Israel were in the wilderness, they found a man that gathered sticks upon the sabbath day.
33 And they that found him gathering sticks brought him unto Moses and Aaron, and unto all the congregation.
34 And they put him in ward, because it was not declared what should be done to him.
35 And the Lord said unto Moses, The man shall be surely put to death: all the congregation shall stone him with stones without the camp.
Of course the penalty for blatantly breaking the commandments would be death. Ordered By God.
You may find the death penalty to be harsh for "minor" offenses, but perhaps God does not.
Here is Moses and his LORD
And the children of Israel took all the women of Midian captives, and their little ones, and took the spoil of all their cattle, and all their flocks, and all their goods. And they burnt all their cities wherein they dwelt, and all their goodly castles, with fire. And they took all the spoil, and all the prey, both of men and of beasts. And they brought the captives, and the prey, and the spoil, unto Moses, and Eleazar the priest, and unto the congregation of the children of Israel, unto the camp at the plains of Moab, which are by Jordan near Jericho. And Moses, and Eleazar the priest, and all the princes of the congregation, went forth to meet them without the camp. And Moses was wroth with the officers of the host, with the captains over thousands, and captains over hundreds, which came from the battle. And Moses said unto them, Have ye saved all the women alive? Behold, these caused the children of Israel, through the counsel of Balaam, to commit trespass against the LORD in the matter of Peor, and there was a plague among the congregation of the LORD. Now therefore kill every male among the little ones, and kill every woman that hath known man by lying with him. But all the women children, that have not known a man by lying with him, keep alive for yourselves.
(Num 31:9-18)
Here are the Israilites worshipping their LORD LINK
This is what Jesus the I AM said about the people and their 613 Mitzvah secular laws
“These people honour me with their lips, but their hearts are far from me. They worship me in vain; their teachings are but rules taught by men.” Matthew 15:8-9
“they are blind guides. If a blind man leads a blind man, both will fall into a pit.” Matthew 15:14.
Jesus said to them, “why do you break the command of God for the sake of your tradition?” Matthew 15:3
For laying aside the commandment of God, ye hold the tradition of men, as the washing of pots and cups: and many other such like things ye do. And he said unto them, Full well ye reject the commandment of God, that ye may keep your own tradition... Making the word of God of none effect through your tradition, which ye have delivered: and many such like things do ye. Mar 7:8-13
We need to follow Jesus and not the god of the Jews. Please do not take what they did as your life example. Baal the deceiver, who had many names was their god.