We find in Sefer Daniel (11:14): "And the wicked among your people will rise up to actualize a vision, but they will stumble."
Clearly in reference to this verse, the Rambam writes : “And these are things the prophets have already foretold, and they have told us about what I have told you, that when the time of the true Moshiach draws near, there will be many who lift themselves high and place doubts in people's minds, but their claims will not be born out, and they will perish and many will perish with them. And when Shlomo, peace be upon him, made known with his holy inspiration, that this nation when it is sunk into exile will try to arouse itself not at its proper time, and they will die because of this and travails will come upon them – he warned against this"