“I am the Lord your God. You shall not do as they do in the land of Egypt …” (v1-2). The Israelites were told not to imitate their pagan neighbors, especially in the area of sexuality. The Law explained that incest was wrong and so was adultery or any other sexual relationship outside of marriage. Many pagan religions used sexuality as a source of power and included it in rituals, and other cultural practices used religion as a cover for abuses. God told Israel to behave differently (v5).
“You shall therefore follow my rules … If a person does them, he shall live by them” (v4-5). God gives us boundaries so that we will not destroy ourselves, but follow Him and live well.