Vayikra / Leviticus 18:30 · Pshat
וּשְׁמַרְתֶּם אֶת־מִשְׁמַרְתִּי לְבִלְתִּי עֲשׂוֹת מֵחֻקּוֹת הַתּוֹעֵבֹת אֲשֶׁר נַעֲשׂוּ לִפְנֵיכֶם וְלֹא תִטַּמְּאוּ בָּהֶם אֲנִי יְהוָה אֱלֹהֵיכֶם׃
So you shall keep My charge, not to do any of the abominable customs that were done before you, and not make yourselves impure with them. I am the Eternal your Almighty."
Pshat פְּשָׁט
Keep My charge
It is not enough to know where the border lies. Someone must stand guard.
Rashi: "you shall keep My charge" is a warning to the court to watch over this. "And do not make yourselves impure with them. I am the Eternal your Almighty": if you make yourselves impure, you become unfit for Me, and what benefit do I have from you? Sforno: keep also the commandments I gave as a guard and a fence, such as the laws of forbidden food and of impurity, and so you will not become impure.
How Rashi and Sforno explain it
Rashi So you shall keep My charge
To warn the court about this.
Rashi And do not make yourselves impure with them. I am the Eternal your Almighty
But if you make yourselves impure, I am your Almighty, and you become unfit for Me. What benefit do I have from you? And you become liable to destruction. That is why it says: "I am the Eternal your Almighty."
Sforno So you shall keep My charge, not to do any of the abominable customs
Keep also the commandments I gave as a guard and a fence, so that you do not stumble in all these: such as the bans on foods and the impurity of a woman in her days of separation, with a flow and after birth, and others. In this way you will not become impure with them.
Takeaway
The words "you shall keep" (וּשְׁמַרְתֶּם) and "charge" (מִשְׁמַרְתִּי) come from one root (שׁמר): "keep what I keep."
Chapter 18 is read on Yom Kippur (the Day of Atonement) at the afternoon prayer, mincha (Megillah 31a).