It is worldly defiled judgments that poison experience rather than holy judgments of grace. Genesis 2:16-17 does not refer to the knowledge of 'good' that is 'holy' or 'undefiled' but ideas of 'good' that give rise to concurrent 'evil'.
For example, Cain believed his offering to the Lord was 'good' and when the Lord rejected Cain's offering & accepted Abel's offering, Cain got angry & jealous and murdered his brother. Cain only did this evil deed due to his ideas about what was 'good' & not having his idea of 'good' fulfilled. Cain did not get the 'good' that he craved therefore became 'evil' or angry, also viewing is brother as 'evil'.
Here, James 4:1-2 states:
What causes conflicts and quarrels among you? Don’t they come from the passions at war within you? You crave what you do not have. You
kill and covet, but are unable to obtain it. You quarrel and fight.
Or in John 8, a woman caught in adultery resulted in the crowd wanting to stone her to death due to their knowledge of good & evil where as Jesus, although knowing adultery is not good & is evil, was not moved to anger in respect to his knowledge but to mercy. He said: "Go & sin no more".
Therefore, Genesis 2:16-17 continues with the consequences of this knowledge of 'good-evil', namely, the things that husbands & wives fight about with their conflicting, greedy & selfish ideas about what is 'good' & what is 'evil', such as the wife believing a bigger house is 'good' while the husband believes a smaller house is 'good' & a bigger house is 'evil' (because it increases his work & debt obligations).
To the woman he said, “I will surely multiply your pain in childbearing;
in pain you shall bring forth children. Your desire shall be contrary to your husband,
but he shall rule over you.” And to Adam he said, “Because you have listened to the voice of your wife
and have eaten of the tree of which I commanded you,
‘You shall not eat of it,’ cursed is the ground because of you;
in pain you shall eat of it all the days of your life; thorns and thistles it shall bring forth for you;
and you shall eat the plants of the field. By the sweat of your face
you shall eat bread, till you return to the ground,
for out of it you were taken; for you are dust,
and to dust you shall return.”
Following what Jesus taught will approach the Tree of Life & move away from the Tree of Knowledge:
37 “Judge not, and you will not be judged; condemn not, and you will not be condemned; forgive, and you will be forgiven; 38 give, and it
will be given to you. Luke 6
Paul gives many teachings about upholding the Law (of good & evil) however emphasizes salvation comes from Grace and not from the Law (alone) since obsession with the Law leads to all kinds of inner self-judgment & neurosis, let alone outward anger & hostility.
Romans 6:14 For sin will have no dominion over you, since you are not under law but under grace.
In short, the kind of 'good-evil' knowledge in Genesis 2:16-17 is judgments that lead to spiritual 'death'.