God knew what he was doing when he drew their attention to the tree of the Knowledge of Good and Evil.
If he hadn’t wanted them to eat it, he would never have mentioned it.