According to the bible this is the sequence of the relevant events.
Genesis 2:8-18 "And the LORD God planted a garden eastward in Eden; and there he put the man whom he had formed. 15 And the LORD God took the man, and put him into the garden of Eden to dress it and to keep it. 16 And the LORD God commanded the man, saying, Of every tree of the garden thou mayest freely eat: 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. 18 And the LORD God said, It is not good that the man should be alone; I will make him an help meet for him.
Ok, that is the background. God created a garden called eden and he placed a man and a woman, who he also created in the garden and he commanded the man not to eat of the tree of knowledge of good and evil. Now also in this garden was a snake or serpent, which god had also created. (Genesis 1:25 "And God made the beast of the earth after his kind, and cattle after their kind, and every thing that creepeth upon the earth after his kind: and God saw that it was good.")
Adam, who was the first to be told not to eat of the tree of good and evil must have gone on to tell eve, because when the snake tempts eve, eve replies - Genesis 3:3 "But of the fruit of the tree which is in the midst of the garden, God hath said, Ye shall not eat of it, neither shall ye touch it, lest ye die." The snake then goes on to tell eve that they won't die but that they will be like gods as they will know good and evil. (Genesis 3:4-5 "And the serpent said unto the woman, Ye shall not surely die: 5For God doth know that in the day ye eat thereof, then your eyes shall be opened, and ye shall be as gods, knowing good and evil."
Hang on. That means that adam and eve had no knowledge of what was good and what was evil as the bible states that it is AFTER they eat the fruit from the tree that they will know good from evil. So how could they know it was wrong to eat the fruit in the first place? And just as importantly, how could they know that it was wrong to disobey god and wrong to listen to the snake? Something isn't right here.
Adam and eve, after eating the fruit, realized that they were naked. Apparently being naked is a bad thing as they then proceeded to cover their "naughty bits" with a leaf or two. God gets a bit stroppy about this and says: - (Genesis3: 11 "Who told you that you were naked? Have you eaten from the tree that I commanded you not to eat from?") So, god now realizes that adam and eve have acquired the knowledge of good and evil AFTER eating the fruit, and that they did NOT know good from evil prior to eating the fruit.
So adam and eve only gained the knowledge of good and evil AFTER they had eaten of the fruit, they had no idea what good and evil was before that time. If they only gained the knowledge of good and evil after they ate the fruit, they obviously did not know that it was evil/bad to eat the fruit in the first place.
Let's now discuss the issue of an omnipresent god. If god is omnipresent, that is he is everywhere at once, god must have been able to see and hear the snake tempting eve. If that is the case, why didn't he just kick the snake out of the way before it could open its yap? Surely he wouldn't have wanted adam and eve to be tempted? I dunno. Maybe he was busy finishing off the fjords at the time and wasn't paying attention.
And why would an omniscient god, one who knows everything, NOT know that the snake was going to tempt eve and that he would be successful in this venture? An omnicient god should have known that the snake was going to successfully tempt eve, so why would he have put the snake there in the first place?