This question is pretty peculiar, and I will explain why soon. First it's not about cursing actually, it's a bit deeper. In the ninth hour G'd said not to eat and one hour later, they ate, as it's written in Genesis 2:17:
17 but of the tree of the knowledge of good and evil you shall not
eat, for in the day that you eat of it you shall surely die (ESV).
There is a problem in here, both Adam and Eve didn't know what death was, so G'd knew that it would happen, also in the passage that says: for in the day that you eat of it. Before they die, they'd suffer as we see in Genesis 3:16:
16 To the woman he said,
“I will surely multiply your pain in childbearing;
in pain you shall bring forth children. Your desire shall be contrary to your husband,
but he shall rule over you.” (ESV)
However, G'd didn't say that they'd suffer nor that he (Adam) shall rule over you. It seems a terrible story, so why to begin with it. It's quite different as we will verify. Firstly, there was no notion of death, so as in jewish philosophy, the souls need to be somehow fixed, the souls of the two needed to find something to fix, however everything was perfect, then, this would only possible in the lower worlds, which is explicit in the following Genesis 3:21:
21 And the Lord God made for Adam and for his wife garments of skins
and clothed them. (ESV)
What G'd did was to cloth them, and this is simple to comprehend, it's not about just material garments but also spiritual ones, this is, G'd clothes Himself.
Why commandments for no sin, so something happened before, that's why the story is so deep, because it's all about desires, for one that goes down from the lower world till the upper, the soul achieves a higher spiritual level, and we talk here about the children of them, not about them, for in hebrew Eve is Havah (חוה) meaning full of life, so it's not about Eve bringing death, but life, life meaning the skill to fulfill a purpose. That's why the woman is the door in jewish philosophy which brings the model into reality, and the man which is the head (ראש) that's why rule over her. And making sure my point, we read in Genesis 3:6:
6 So when the woman saw that the tree was good for food, and that it
was a delight to the eyes, and that the tree was to be desired to make
one wise, she took of its fruit and ate, and she also gave some to
her husband who was with her, and he ate. (ESV)
We conclude that the tree was desirable, meaning that the tree has the possibility to bring desires, that's why in every "curse" there is a desire to be achieved, and if so, one elevates the soul. That's why even if G'd didn't want them to eat, He wanted by another side which is bigger, the fact I quoted above, to fulfill a higher purpose, and we can see an analogy in Christianity very clearly.
The completion of the answer concerns the desire for Adam (the head) by Eve:
7 If you do well, will you not be accepted? And if you do not do
well, sin is crouching at the door. Its desire is contrary to you,
but you must rule over it.” (Genesis 4:7) (ESV)
The word desire is to step down, as in the case of the tree. In hebrew we have for the same verse from Genesis 4:7:
הֲל֤וֹא אִם־תֵּיטִיב֙ שְׂאֵ֔ת וְאִם֙ לֹ֣א תֵיטִ֔יב לַפֶּ֖תַח חַטָּ֣את
רֹבֵ֑ץ וְאֵלֶ֙יךָ֙ תְּשׁ֣וּקָת֔וֹ וְאַתָּ֖ה תִּמְשׇׁל־בּֽוֹ׃
The word תְּשׁ֣וּקָת֔וֹ which is the word in hebrew for desire doesn't refer to the sin but to the door, for there is the וֹ at the end, referring to singular. Then, the woman compared to a door of possility to bring a desire into reality (life). The verse in Genesis 3:16 isn't about a woman to desire the husband, on the contrary, it says that the woman will bring the desire (as I hope it's most appropriate, even though תְּשׁ֣וּקָתֵ֔ךְ means literally desire of her):
אֶֽל־הָאִשָּׁ֣ה אָמַ֗ר הַרְבָּ֤ה אַרְבֶּה֙ עִצְּבוֹנֵ֣ךְ וְהֵֽרֹנֵ֔ךְ
בְּעֶ֖צֶב תֵּֽלְדִ֣י בָנִ֑ים וְאֶל־אִישֵׁךְ֙ תְּשׁ֣וּקָתֵ֔ךְ וְה֖וּא
And we conclude that the curse isn't actually what we might think, it's a step down that can bring a desire to fulfill a purpose, the woman being the door of the possible acomplishment of it, and the man being the head, this happens, because in the heavens (in jewish philosophy) a partzuf has a body and a head. Actually the verse would best translate as:
for your husband (Eve), your desire.
This is, it's not Eve that desires the man, for that would be too "easy" for her, she would need to lose something instead, in this case, a desire. Again, it's not about suffer or pain as we are so familiarized with, but an opportunity to fulfill a purpose, so the man shall desire his wife.