When Adam was commanded not to eat from the tree of knowledge, G-d presented him with the punishment (Ber 2.17):
וּמֵעֵץ הַדַּעַת טוֹב וָרָע לֹא תֹאכַל מִמֶּנּוּ כִּי בְּיוֹם אֲכָלְךָ מִמֶּנּוּ מוֹת תָּמוּת׃
but as for the tree of knowledge of good and bad, you must not eat of it; for as soon as you eat of it, you shall die.
So "you shall die" was the punishment, as I understand. However, it looks that "things went emotional" (please edit) when G-d started to curse the serpent, Eve and Adam, things that were not detailed in the commandment:
וּלְאָדָם אָמַר כִּי־שָׁמַעְתָּ לְקוֹל אִשְׁתֶּךָ וַתֹּאכַל מִן־הָעֵץ אֲשֶׁר צִוִּיתִיךָ לֵאמֹר לֹא תֹאכַל מִמֶּנּוּ אֲרוּרָה הָאֲדָמָה בַּעֲבוּרֶךָ בְּעִצָּבוֹן תֹּאכֲלֶנָּה כֹּל יְמֵי חַיֶּיךָ׃
To Adam He said, “Because you did as your wife said and ate of the tree about which I commanded you, ‘You shall not eat of it,’ Cursed be the ground because of you; By toil shall you eat of it All the days of your life:
So let's say I'm speeding, and a cop stops me. I'm liable to the full punishment outlined in the law, but not to additional curses, humiliation, hatred etc.
So it is either that the curses should have been elaborated in the commandment or G-d should have terminated Adam as promised.
Why G-d cursed Adam and Eve and the Serpent contrary to the wording of the punishment in the commandment?