Vayikra20:22

וּשְׁמַרְתֶּם אֶת־כָּל־חֻקֹּתַי וְאֶת־כָּל־מִשְׁפָּטַי וַעֲשִׂיתֶם אֹתָם וְלֹא־תָקִיא אֶתְכֶם הָאָרֶץ אֲשֶׁר אֲנִי מֵבִיא אֶתְכֶם שָׁמָּה לָשֶׁבֶת בָּהּ׃

You shall keep all My statutes and all My judgements and do them, so that the land to which I am bringing you to dwell in it does not vomit you out.

Vayikra 20:22

וּשְׁמַרְתֶּם אֶת־כָּל־חֻקֹּתַי וְאֶת־כָּל־מִשְׁפָּטַי

Vayikra / Leviticus 20:22 · Pshat

Vayikra 20:22

וּשְׁמַרְתֶּם אֶת־כָּל־חֻקֹּתַי וְאֶת־כָּל־מִשְׁפָּטַי וַעֲשִׂיתֶם אֹתָם וְלֹא־תָקִיא אֶתְכֶם הָאָרֶץ אֲשֶׁר אֲנִי מֵבִיא אֶתְכֶם שָׁמָּה לָשֶׁבֶת בָּהּ׃

You shall keep all My statutes and all My judgements and do them, so that the land to which I am bringing you to dwell in it does not vomit you out.

Pshat פְּשָׁט

A land that cannot bear it

The body itself rejects what does not suit it. Can the land behave the same way?

Ibn Ezra: "keep all My statutes" means: do not break the prohibitions of intimacy. Chizkuni: it is repeated because above it speaks of life outside the Land of Israel, and here of the Land itself. Malbim: the land in its holiness cannot bear abominable deeds, as a pampered person cannot bear unsuitable food.

How Ibn Ezra, Chizkuni, and Malbim explain it

Ibn Ezra You shall keep all My statutes

So as not to break these prohibitions of intimacy.

Chizkuni You shall keep all My statutes

Scripture repeated it: above it speaks of life outside the Land, and here of the Land.

Malbim So that the land does not vomit you out

The sages explained that Scripture took the word "vomit" for the land from the parable of a pampered person who cannot bear food unsuited to his nature, and nature drives it out of his belly by vomiting. So the land in its holiness cannot bear these abominable deeds, and it is impossible for its inhabitants to remain on it with such deeds.

Takeaway

The same image earlier: "so that the land does not vomit you out when you make it impure, as it vomited out the nation that was before you" (Vayikra / Leviticus 18:28).
The prohibitions of intimacy that Ibn Ezra speaks of are listed in this chapter (Vayikra / Leviticus 20:10–21).