When I was a child, I was taught that Adam & Eve were punished for eating fruit from the forbidden tree. The list at the beginning of the answer in What was Adam and Eve’s punishment? gives roughly the same list. However, what God said to Adam was
cursed is the ground for thy sake
For your sake – I am making the ground less fertile, polluted, etc. for your benefit. Why would those things benefit man? Because it meant that man had to work. Having to work provides an incentive to be conscientious & thoughtful and to plan. That the purpose of work was to benefit man is confirmed in Ecclesiastes:
There is nothing better for a man than that he should eat and drink, and that he should make his soul enjoy good in his labor. This also I saw, that it was from the hand of God. (Eccl 2:24)
I have seen the travail which God hath given to the sons of men to be exercised in it. (Eccl 3:10)
The second thing that God said to Adam was
unto dust shalt thou return
Was (eventual death) a punishment? One of the main lessons that Jesus taught was that death was the gateway to eternal life. In addition, having a finite life means you have limited time. You cannot do everything you want. The limitation of time and choices is an incentive to plan and to seek wisdom so that you can make the best use of the time you have available.
What God said to Eve was
I will greatly multiply thy sorrow
On the surface it might seem that it would be difficult to classify pain as a benefit to man. The thing is that Eve was to a substantial degree responsible for the Adam’s suffering from what is outlined above. Pain is not only a biological defence mechanism. It also gives us an awareness of the suffering of others. If we did not feel pain then we would not be able to understand the pain of others.
Contrary to what I was taught when I was a child, God’s response to the first sins was not punishment. Instead it was laying ground work for mankind to accept/pursue salvation.