Vayikra / Leviticus 18:6 · Drash
אִישׁ אִישׁ אֶל־כָּל־שְׁאֵר בְּשָׂרוֹ לֹא תִקְרְבוּ לְגַלּוֹת עֶרְוָה אֲנִי יְהוָה׃
None of you shall come near to any of his own flesh to uncover nakedness. I am the Eternal.
Drash דְּרָשׁ
A fence around the ban
Not to fall off a cliff, it is not enough not to jump. You must not walk up to the edge.
Midrash Lekach Tov: "man, man" includes the nations of the world, and "do not come near" applies to both man and woman. Some say that only nearness that leads to uncovering nakedness is forbidden, and Ulla says that any nearness is forbidden: "Go round, nazirite, go round, do not come near the vineyard." Kli Yakar: "man, man" is said of one who is alone with a woman, because seclusion leads to what is forbidden.
How Midrash Lekach Tov and Kli Yakar explain it
Midrash Lekach Tov Man, man
To include the star-worshipping nations: forbidden unions are forbidden to them too, as to Israel. "Do not come near to uncover": forbidden unions are forbidden to both man and woman. Another explanation: "do not come near to uncover" means that nearness that leads to uncovering nakedness is forbidden, and nearness that does not lead to it is permitted: for a person kisses and embraces his sister, his aunt and his mother. Ulla said: any nearness is forbidden. As they say: "Go, go, nazirite, go round about, do not come near the vineyard." "I am the Eternal": if only his Creator knows of a person, He will exact payment from him, as it is said: "and he puts a covering on his face" (Iyov / Job 24:15), that is, the One who dwells in secret, the Most High, turns His face to him. "I am the Eternal": to pay a good reward to those who keep My commandments. And these are the forbidden unions for which the penalty is karet: a mother and a father's wife, a sister, from the father or from the mother, a daughter, a son's daughter, a daughter's daughter, a wife's daughter, her son's daughter and her daughter's daughter, a mother-in-law, the mother of a mother-in-law and the mother of a father-in-law, a father's sister and a mother's sister, from the father or from the mother, the wife of a father's brother, a daughter-in-law, a brother's wife, from the father or from the mother, a wife's sister, from the father or from the mother. A child from a union with any of them is a mamzer. The woman becomes forbidden to a kohen, and she needs no divorce from this man, because a marriage with her does not take effect.
Kli Yakar None of you shall come near to any of his own flesh
This is about nearness that leads to uncovering nakedness, that is, seclusion, because it leads to what is forbidden. That is why it says "man, man": precisely when each man is alone with a woman. For two men are permitted to be together with one woman, and that is no longer "man, man", which means each man by himself. And "do not come near" is said in the plural to warn the woman too, as Rashi explained. The reason for the forbidden unions Rambam explained so: to lessen intimacy, because these women are close to a person and always near him. But Ramban refuted this view: for we see that Scripture permitted a man wives by the thousands. So he explained that this commandment is a secret. And it seems that this is why it says "I am the Eternal" here, that is: I know the reason for it, and for you it is a statute.
Takeaway
A nazirite (נָזִיר) has vowed not to drink wine and not to eat anything from the grapevine (Bamidbar / Numbers 6:3). The saying teaches: so as not to transgress, do not even go near the vineyard.
A mamzer (מַמְזֵר) is a child of a forbidden union from this list. By Torah law he may not marry an ordinary member of the community (Devarim / Deuteronomy 23:3).