וַיֹּאמֶר֩ יְהֹוָ֨ה אֱלֹהִ֥ים ׀ אֶֽל־הַנָּחָשׁ֮ כִּ֣י עָשִׂ֣יתָ זֹּאת֒ אָר֤וּר אַתָּה֙ מִכָּל־הַבְּהֵמָ֔ה וּמִכֹּ֖ל חַיַּ֣ת הַשָּׂדֶ֑ה עַל־גְּחֹנְךָ֣ תֵלֵ֔ךְ וְעָפָ֥ר תֹּאכַ֖ל כָּל־יְמֵ֥י חַיֶּֽיךָ׃
האָט גאָט דער האַר געזאָגט צו דער שלאַנג: װײַל דו האָסט דאָס געטאָן, זאָלסטו זײַן פֿאַרשאָלטן פֿון צװישן אַלע בהמות, און פֿון צװישן אַלע חיות פֿון פֿעלד; אױף דײַן בױך זאָלסטו גײן, און שטױב זאָלסטו עסן אַלע טעג פֿון דײַן לעבן.
Rashi
כי עשית זאת BECAUSE THOU HAST DONE THIS — From here we infer that we should not occupy ourselves with what may be in favour of one who seduces people to idolatry, for had He asked it, “Why hast thou done this?”, it could have answered Him, “When the words of the teacher and those of the pupil are contradictory, whose orders should be obeyed?” (Sanhedrin 29a). (i. e. if You told them one thing and I another, should they not have obeyed You?).
Bekhor Shor
On your belly shall you crawl: It is the way for people that give evil counsel to each other, to have them separated from one another. Hence He said to the serpent, "'On your belly shall you crawl' - such that your mouth be placed on the land, whereas she will be erect, so that you will not have a place in which to take counsel with her. And dust shall you eat all the days of your life: Given that your mouth will be on the land, you will eat it against your will. And enmity will I put (Genesis 3:15):" This too is a distancing.
Chizkuni
כי עשית זאת, (G-d speaking to the serpent) “because this is what you have done, etc;” Rashi comments that we learn from here that seducers are not given an opportunity to defend their actions, as if G-d had asked the serpent why it had acted as it did, the serpent would have answered: ”since when does one follow the instructions of the pupil when they contradict the instructions of the teacher, i.e. G-d?” Since the Torah had expressly forbidden the seducer to practice his trade, this will never be accepted as his excuse, i.e. that he only wanted to “test” the victim of his seduction. If the seducer himself does not use this argument, we (the court) certainly must not use it on his behalf. If you were to ask: the Torah’s legislation about this subject only deals with someone who seduces others to commit idolatry, not other sins!? (Compare Deuteronomy 13,712) The answer is that the serpent had held out the hope to the woman that by eating from the tree of knowledge they would be just as great as G-d, והייתם כאלוהים, i.e. the seduction was based on leading them into worshipping themselves as deities.