They had plenty of carnal experiences and the angels were cheering them on. It was the knowledge of good and evil that got them in trouble.
God told Adam to not eat the fruit of the tree of knowledge. Adam knew it would be a sin to disobey God. But, he joined Eve in tasting the fruit, and then hid and lied to God when asked about it.
Those were sinful acts. Acquiring the knowledge of good and evil in and of itself was not the sin. He did not need to "learn about" evil to sin ... he had to "experience" evil.
The word "know" has many connotations in the Bible and other writings of the period. In many examples, it's used to describe sexual intercourse, i.e. "And he knew her," or "She had known many men." Many references in contemporary literature and media refer to this: "Yeah, I know her ... but not biblically."
Lots of literature exists on what the fruit and tree represent, what the sin was comprised of, what the consequences were (mortality), and how that figures into "original sin".
Babies are born of carnal acts, which was thought to mean children were not 100% innocent at birth. The act of conception was the "original sin" that created each of us.
So, to say Adam was in trouble because eating the fruit gave him knowledge of good and evil is an interpretation of what was written saying he "knew" good and evil -- an act.
Stuff to make you go, "Hmmmm".
