Prohibition: "לא תאכל ממנו" "not eat from it"
From where did Adam get the fruit? Was it from the tree?
See 3:6. "ותתן גם־לאישה עמה ויאכל" "and [it] was given also, to her husband with her, and he ate."
Adam did not violate the prohibition. Instead, he followed the 2nd law given to him 2:24. Adam did not sin. The author Romans is wrong.
This is further confirmed in the confession/interrogation sequence I cited. The entire story is a trap for the serpent, Nachash, who makes a future appearance in the prophets. The serpent is the only one which sinned. It's the only one which is cursed.
Look, I don't like to play too many games like this, to be sure. But I'll mention that the fruit obviously came from the tree, although it was given to him by his wife. The author of Romans was not wrong. Adam took the fruit. He knew he was not to eat from that tree. He disobeyed his maker. Why? Do you think he thought it was a good thing to eat the fruit his wife offered him? As I said I don't like too many games regarding this and distorting the scriptures. So let's see -- what happened after Adam took the fruit? Was he allowed to stay in the garden?
Genesis 3: God spoke to Adam after he ate the fruit:
To Adam he said, “Because you listened to your wife and ate fruit from the tree about which I commanded you, ‘You must not eat from it,’
“Cursed is the ground because of you;
through painful toil you will eat food from it
all the days of your life.
18It will produce thorns and thistles for you,
and you will eat the plants of the field.
19By the sweat of your brow
you will eat your food
until you return to the ground,
since from it you were taken;
for dust you are
and to dust you will return.”
The scripture speaks for itself, I don't have to interpret it for you.