It was also written to "not eat from that fruit". So the solution to solve "good and evil" problem was given in Genesis
The problems with that are many. First, God doesn't order Adam and Eve not to eat the fruit; instead [he] warns them: "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 die."(2:17). Then [he] pretends it was a commandment: "Have you eaten of the tree of which I commanded you not to eat?" (3:11) This is underlined by the fact that they don't die the same day ─ just as the snake said. Second, at the time when Adam and Eve ate the fruit, God had denied them the ability to know good from evil. Therefore they were incapable of forming an intention to do wrong. Therefore they were incapable of sin. Third, the Garden story never mentions sin, original sin, the fall of man, death entering the world, spiritual death, or anything like that. Adam and Eve are NOT expelled from Eden for eating the fruit. Instead God sets out [his] reasons clearly in Genesis 3: "22 Then the LORD God said, "Behold, the man has become like one of us, knowing good and evil; and now, lest he put forth his hand and take also of the tree of life, and eat, and live for ever"─ 23
therefore the LORD God sent him forth from the garden of Eden, to till the ground from which he was taken."
Yes, I know Paul mentions it ─ I seem to recall the idea originated midrash-wise among Alexandrian Jews late in the second century BCE ─ but no one appears to have made a fuss of it till Augustine of Hippo around 400 CE. A pity none of them paused to read what the text actually says ...