Adam & Eve did not have the ability to know right from wrong until after they ate from the tree of knowledge of good and evil. God created them unaware, but he was still angry at them for being unaware that going against his word was wrong.
Adam & Eve were created so ignorant that they weren’t even intelligent enough to know they were naked. It was not until after eating the fruit that “the eyes of them both were opened, and they knew that they were naked”. Even God knew they couldn’t have been smart enough to know they were naked unless someone told them.
Just let that sink in, God created man unaware then was angry at man for being how he created them.