That doesn't mean that we can't change it. Accepting sin is an act of will. We can also change things. ......if we want to.
If God knows what we will do, then He knows if we will change or not, right?
If God cannot be wrong, then what He knows will happen, will happen, right?