Before that.. God is ALL knowing. He goes to "CREATE" a being. He creates this being *JUST* flawed enough to fall for the snake's trick, & he KNEW she would BEFORE he created her, So, he created her to do so. 100% Set her up to fail. God wanted evil in the world, Eve was just rationalization.