When we give in to small temptations, our consequences might not be [very grave] but they also take a toll on us. When we know that something is important to us, but continually give in to temptation, we stop valuing that thing. We lose the long-term value in place of instant gratification. Not giving in to temptations helps us to clarify our values and stick to our convictions.
(Excerpt from Torah Topics for Today by Judith Greenberg)
(ח) וַֽיִּשְׁמְע֞וּ אֶת־ק֨וֹל יי אֱלֹקִ֛ים מִתְהַלֵּ֥ךְ בַּגָּ֖ן לְר֣וּחַ הַיּ֑וֹם וַיִּתְחַבֵּ֨א הָֽאָדָ֜ם וְאִשְׁתּ֗וֹ מִפְּנֵי֙ יי אֱלֹקִ֔ים בְּת֖וֹךְ עֵ֥ץ הַגָּֽן׃ (ט) וַיִּקְרָ֛א יי אֱלֹקִ֖ים אֶל־הָֽאָדָ֑ם וַיֹּ֥אמֶר ל֖וֹ אַיֶּֽכָּה׃ (י) וַיֹּ֕אמֶר אֶת־קֹלְךָ֥ שָׁמַ֖עְתִּי בַּגָּ֑ן וָאִירָ֛א כִּֽי־עֵירֹ֥ם אָנֹ֖כִי וָאֵחָבֵֽא׃
(8) And they heard the voice of the LORD God walking in the garden toward the cool of the day; and the man and his wife hid themselves from the presence of the LORD God amongst the trees of the garden. (9) And the LORD God called unto the man, and said unto him: ‘Where art thou?’ (10) And he said: ‘I heard Thy voice in the garden, and I was afraid, because I was naked; and I hid myself.’
(א)איכה. יודע היה היכן הוא, אלא לכנס עמו בדברים, שלא יהא נבהל להשיב אם יענישהו פתאום וכן בקין (בראשית ד ט) אמר לו אי הבל אחיך, וכן בבלעם (במדבר כב ט) מי האנשים האלה עמך, לכנס עמהם בדברים, וכן בחזקיה בשלוחי (אויל) מרודך בלאדן (ישעיה לט א) :
(1) Where are you: He knew where he was, but [He asked him this] in order to enter into conversation with him, lest he be frightened to answer if He should punish him suddenly (Tanchuma Tazria 9). So with Cain, He said to him (below 4:9): “Where is your brother Abel?” And so with Balaam (Num. 22:9): “Who are these men with you?” for the purpose of entering a conversation with them, and so with Hezekiah, in regard to the emissaries of Merodach Baladan (Isa. 39:3) (Gen. Rabbah 19:11).


