א׳V. 30. נקש .פן תנקש וגו׳ could be phonetically related to נגש, approach, a strong movement towards a person. Hence נַקֵשׁ, to bring something forcibly to yourself, ינקש נשה לכל אשר לו (“Let the extortioner seize all that he hath” Ps. 109,11, I.L.) וינקשו מבקשי נפשי (“they that seek my life lay snares to catch me” Ps. 38,13, I.L.). Hence הִנָקֵשׁ to be drawn towards somebody. So the Sifri also takes it: שמא תמשך אחריהם. Possibly in this root, just as in נגש there is some innate reflection to a real or imagined legal argument. You could imagine yourselves as owing something to the land and to the previous inhabitants driven out and dispossessed on your account. You could be caught by the erroneous idea that it was up to you to carry on their mode of life in their land. In any case the Sifri takes פן תנקש אחריהם as an independent prohibition, separate from what follows, and prohibiting in general following their specific manners and customs, similar to ובחקתיהם לא תלכו (Levit. 18,3).
ב׳ופן תדרש וגו׳ איכה עבדו וגו׳. This prohibition comprises worshipping heathen gods in the special way that is generally recognised as the official mode used by their followers. The Law differentiates between עבודת פנים, the prescribed ways of homage and service to be shown to our One God and His Sanctuary, as המזבח והמקטר והמנסך ומשתחוה, if anyone does any of these acts to any heathen god, it is punishable even if such act is not the customary way of worshipping that particular god, אפי׳ שלא כדרכו. All other means of showing honour to such gods are only punishable if it is כדרכו i.e. if that is the way this particular god is worshipped, if it corresponds to איכה יעבדו וגו׳ of our verse. (Sanhedrin 60,b, see Ex. 22,19).