Parshas Acharei Mos · Passuk 18:24
אַל־תִּטַּמְּאוּ בְּכָל־אֵלֶּה כִּי בְכָל־אֵלֶּה נִטְמְאוּ הַגּוֹיִם אֲשֶׁר־אֲנִי מְשַׁלֵּחַ מִפְּנֵיכֶם׃
Torah Temimah points to Sanhedrin 81a.
English: “Do not defile yourselves through all these” — that is, through any one of these.
Any single prohibition suffices
The warning applies to any one of the listed forbidden relations, not only to committing all of them.