cf. https://www.biblegateway.com/passage/?search=gen+2%3A17&version=NIVUK

The term "good and evil" in Hebrew is used in legal literature of the period to describe legal responsibility. The tree of knowledge of good an evil then becomes a potent symbol of moral authority, the eating of which expresses the human desire to go his or her own way rather than God's way. The Hebrew word for "knowledge" has a wide range of meanings which include "experience". By eating the fruit, Adam and Eve exercise an experience their own moral judgement, separating it from God's. That really is evil and it is the evil consequence of disobeying God's Commands that we see in the world ever since. It is obedience to God[Who is Love]'s Law which gives real light to the eyes [Psalm 19:8] not disobedience.