Over and over, Israel would fail to keep themselves away from the cultures around them and the evils they practiced. There was the flat out, easy to recognize idolatry when they worshipped other gods or creatures or the work of their own hands. They also engaged in sexual sins and violence. In general, they failed to serve God. They didn't place God first.
What "rules" do we have now? Do we think what God expects from is is old fashioned or odd? Are we set apart? Do we lead others to God? We live in an entirely pagan society, set against God in so many ways. Are falling for that, as the Israelites did?
And the Lord spoke to Moses, saying: Speak to the children of Israel, and thou shalt say to them: I am the Lord your God. You shall not do according to the custom of the land of Egypt, in which you dwelt: neither shall you act according to the manner of the country of Chanaan, into which I will bring you, nor shall you walk in their ordinances. You shall do my judgments, and shall observe my precepts, and shall walk in them. I am the Lord your God.Keep my laws and my judgments, which if a man do, he shall live in them. I am the Lord.