So He walks into a room and finds someone commiting rape. Since He knows it’s going to happen, does He walk back into the past, and still create that person?
If He knows it’s going to happen, and He cannot be wrong, doesn’t it have to happen?
I find it best for my mental health if I do not presume to know the mind of God. I cannot answer your question.