You have that backwards. They learned the knowledge of good and evil by disobeying God. Read your Bible!
----------------------
17: But of the tree of the knowledge of good and evil, thou shalt not eat of it: for in the day that thou eatest thereof thou shalt surely die
What does the word “knowledge” as used there mean?