To reduce your question down, you seem to be asking, "Why did x thing get created if it caused evil?"
I like to think that the answer is in how things are created. To create matter, you have to also create antimatter (if i understand that right). Perhaps, for God to create Good, he had to also create evil. A point that I have seen argued is "did god create everything from nothing" like was taught by the Catholic church, or "did god create from existing things" like organization.
In conclusion, what god did and why has a lot of questions around it, and it is easy to split a definition like "create" and get in a heated argument while talking past each other.
I personally think that "being as gods having a knowledge of good and evil" being the boon that the fruit of the tree gave is key to your question as there is no perception of good without the contrast of evil and vice versa.
**Source for personal belief: ** https://www.biblegateway.com/passage/?search=Genesis%203&version=NIV The serpent lies to get past the reticence of eating/disobeying by saying "you shall not surely die" then persuades with an assertion that I take to be fact: "be like god having knowledge of good and evil".
The trolling response is obvious if you grew up around teenagers playing with this idea: