President Trump appears to have predicted Eric Schneiderman’s downfall — five years ago, in a tweet about the New York attorney general.

Trump compared Schneiderman to two New York Democrats, Rep. Anthony Weiner and Gov. Eliot Spitzer, whose careers exploded amid sex charges.

“Weiner is gone, Spitzer is gone – next will be lightweight A.G. Eric Schneiderman. Is he a crook? Wait and see, worse than Spitzer or Weiner,” Trump tweeted on Sept. 11, 2013.

Rocked by a prostitution scandal, Spitzer — the infamous “Client 9” — resigned in disgrace in 2008, while Weiner was convicted of sexting a minor and sentenced to 21 months in the slammer.

Schneiderman resigned Monday night just hours after he was accused in a bombshell New Yorker report of physical violence against four women, including Michelle Manning Barish and Tanya Selvaratnam.

Just one month before Trump foreshadowed Schneiderman’s demise, the AG had sued the future US president over his failed Trump University, calling it fraudulent.

“In New York, we have laws against business fraud, we have laws against consumer fraud,” he said on ABC’s “Good Morning America” when asked about the lawsuit filed against Trump in 2013.

“We have a law against running an illegal unlicensed university. This never was a university … it was really a fraud from beginning to end,” Schneiderman added.

While announcing his intention to step down Tuesday, Schneiderman said: “In the last several hours, serious allegations, which I strongly contest, have been made against me. While these allegations are unrelated to my professional conduct or the operations of the office, they will effectively prevent me from leading the office’s work at this critical time.”

The president had not weighed in by early Tuesday on the latest collapse of a politician in the #MeToo era, but his supporters within and outside the White House have been expressing their glee.

One of them, presidential counselor Kellyanne Conway, simply tweeted: “Gotcha.”