Replying to Nantz’s comment
Genesis 3:22
And the LORD God said, Behold, the man is become as one of us, to know 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.
God has the knowledge of good and evil but he chooses good and his judgments are righteous and true.…