The question is not a contradiction in the dogma of people of faith rather, a testament to our limited understanding of the infinity of God.
I do not believe there is a pre-destination ie., a set of instructions written in a book somewhere that we are destined to follow.
I think we have free will and God simply knows what we are going to choose before we choose it.
God says he knew us not only in the womb, but even before the foundation of the world. He knew what decisions we would make in our lives even before we were born, and yet we still had the free will to make those decisions for ourselves.
Likewise, he also knew Adam and Eve would become a fallen race and he still chose to provide a way for our wretched souls to be Holy and Righteous in his sight through the blood of Christ.
Very interesting question.