God is not limited by a linear flow of time as we are.
Exactly. Mary was saved by her own Son in eternity, not yet come to Earth, that He would enter through a gate not stained with sin...