That law was written because those people didn’t give the Israelites food and water. And they had paid Balaam to say a curse against the Israelites. But our God changed that curse and made it a blessing for us.
When Balak heard this, he angrily struck his fist against his hand and said to Balaam, “I called you to come and curse my enemies. But you have blessed them. You have blessed them three times.
This is the message: A new nation of people has come out of Egypt. There are so many people that they cover the land. So come and curse these people. Then maybe I will be able to fight them and force them to leave my land.”