The woman saw that the tree’s fruit was good to eat and pleasing to look at. She also saw that it would make a person wise. So she took some of the fruit and ate it. She also gave some to her husband, who was with her. And he ate it.
But the commandment gave sin an opportunity. Sin caused me to want all kinds of things that belong to others. A person can’t sin by breaking a law if that law doesn’t exist.