If Israel merits it, the Messiah will come early. If not, he will come at the last possible moment, as ordained by God’s calendar

-Talmud, Sanhedrin 99a