We see in chapter three of Genesis that although Adam and Eve were commanded not to eat from the Tree of Knowledge by G-d, the serpent was able to make it desirable in their eyes and lead them to sin.
וַיֹּאמֶר הַנָּחָשׁ אֶל־הָאִשָּׁה לֹא־מוֹת תְּמֻתוּן׃ כִּי יֹדֵעַ אֱלֹהִים כִּי בְּיוֹם אֲכׇלְכֶם מִמֶּנּוּ וְנִפְקְחוּ עֵינֵיכֶם וִהְיִיתֶם כֵּאלֹהִים יֹדְעֵי טוֹב וָרָע׃ וַתֵּרֶא הָאִשָּׁה כִּי טוֹב הָעֵץ לְמַאֲכָל וְכִי תַאֲוָה־הוּא לָעֵינַיִם וְנֶחְמָד הָעֵץ לְהַשְׂכִּיל וַתִּקַּח מִפִּרְיוֹ וַתֹּאכַל וַתִּתֵּן גַּם־לְאִישָׁהּ עִמָּהּ וַיֹּאכַל׃
And the serpent said to the woman, You shall not surely die: for G-d knows that on the day you eat of it, then your eyes shall be opened, and you shall be as gods, knowing good and evil. And when the woman saw that the tree was good for food, and that it was a delight to the eyes, and a tree to be desired to make one wise, she took of its fruit, and did eat, and gave also to her husband with her; and he did eat.
However, according to some opinions, Adam and Eve did not have desire before eating from the Tree of Knowledge and innocently followed the word of G-d.
One is Ramban's commentary on Genesis 2:9
... The proper interpretation appears to me to be that man’s original nature was such that he did whatever was proper for him to do naturally, just as the heavens and all their hosts do, “faithful workers337 whose work is truth, and who do not change from their prescribed course,”338 and in whose deeds there is no love or hatred. Now it was the fruit of this tree that gave rise to will and desire, that those who ate it should choose a thing or its opposite, for good or for evil. This is why it was called ‘etz hada’ath’ (the tree of the knowledge) of good and evil, for da’ath in our language is used to express will. ...