President TrumpDonald TrumpUkraine's president compares UN to 'a retired superhero' Collins to endorse LePage in Maine governor comeback bid Heller won't say if Biden won election MORE on Tuesday weighed in on the shocking defeat of a longtime New York Democrat who lost his primary to a progressive challenger.

Trump tweeted Tuesday night that Rep. Joseph Crowley (N.Y.), the No. 4 House Democrat and chairman of the House Democratic Caucus, was a "big Trump hater" and should have been "nicer" and "more respectful" to him.

ADVERTISEMENT

"Wow! Big Trump Hater Congressman Joe CrowleyJoseph (Joe) CrowleyProgressives eye shift in strategy after high-profile losses Ocasio-Cortez doesn't rule out challenging Schumer Cynthia Nixon backs primary challenger to Rep. Carolyn Maloney MORE, who many expected was going to take Nancy PelosiNancy PelosiBiden touts 'progress' during 'candid' meetings on .5T plan Manchin: Biden told moderates to pitch price tag for reconciliation bill On The Money — Democrats rush to finish off infrastructure MORE’s place, just LOST his primary election. In other words, he’s out! That is a big one that nobody saw happening. Perhaps he should have been nicer, and more respectful, to his President!" Trump wrote.

In a second tweet, the president mocked Democrats as being in "turmoil," claiming that elections across the country, including Crowley's defeat, played into his prediction of a "red wave" of GOP support in November.

"The Democrats are in Turmoil! Open Borders and unchecked Crime a certain way to lose elections. Republicans are for Strong Borders, NO Crime! A BIG NIGHT!" he tweeted.

Crowley lost the Democratic nomination Tuesday night to Alexandria Ocasio-Cortez, a progressive candidate backed by Sen. Bernie SandersBernie SandersBiden touts 'progress' during 'candid' meetings on .5T plan Manchin: Biden told moderates to pitch price tag for reconciliation bill Biden employs flurry of meetings to unite warring factions MORE (I-Vt.). She has called for abolishing Immigration and Customs Enforcement and sharply condemned Trump's policy of separating families at the border for prosecution.

Her campaign sought to cast Crowley as closer to Republicans than Democrats, noting in a tweet just days ago that Crowley and the president share several donors.

".@repjoecrowley’s #2 all-time career donor, Blackstone, profits off immigrant detention centers and funded the Trump campaign," Ocasio-Cortez tweeted on June 21.

"Last night, Crowley was the guest of honor at a GOP fundraiser held by opioid pill-mill lobbyists and other Trump donors."