That's the very reason I've always thought the Adam & Eve story was stupid. For an all-knowing deity, God sure fucks up when he puts the Tree of Knowledge in the middle of the Garden of Eden and then tells Adam & Eve not to eat from it. Either that or he intended for it to happen, which makes the idea of him getting angry at all humanity (and the serpent) pretty silly.
Christian apologetics is the art of rolling a dog turd in sugar and selling it as a donut.