I would think that God already knew what she was going to do, before He even created her.
She chose wrong. Cataclysmically wrong for her.
And God knew she would, and still created her.