I guess you could ask yourself a few other questions first: Was the fruit of “the tree of the knowledge of good and evil” imperfect? Apparently the fruit did a perfectly good job of pointing our good and evil! A second question relates to the matter of choice. Can God make the choice to make creatures of choice? As I read through Scripture there seems to be a lot of places where God gives choice instead of turning people or even angels into robots. Adam and Eve chose to eat the fruit of the tree – God probably knew they didn’t need to go to the “dark side” to be able to live a perfectly good life. So the desire on His part for them not to eat the fruit of the tree. Satan (serpent) also made a choice to not follow God, which certainly landed him in rather hot water!
The creation was created (very) good. Our response, Adam and Eve’s response and even Satan’s response to the creation are a sign of a good God who creates us with choice and not just being robots.