Donald Trump is warning that there will be riots if he has the most delegates to the Republican presidential convention and is denied the nomination.

“I think we’ll win before getting to the convention, but I can tell you, if we didn’t and if we’re 20 votes short or if we’re 100 short and we’re at 1,100 and somebody else is at 500 or 400 . . . I don’t think you can say that we don’t get it automatically. I think you’d have riots,” Trump told CNN.

The morning after winning primaries in Florida, Illinois, North Carolina and Missouri, the former reality-TV star said he would not “lead” the unrest — but it would happen anyway.

“If you disenfranchise those people . . . I think bad things would happen. I think you would have problems like you’ve never seen before . . . I wouldn’t lead it, but I think bad things would happen,” Trump said.

The outspoken billionaire has already faced harsh criticism from opponents who charge that he has incited violence at some campaign events that have been disrupted by leftist protesters who then clashed with his supporters.

Republican Party bigs dismissed Trump’s warning, saying he should not be taken literally.

“I assume he’s speaking figuratively,” Sean Spicer, the Republican National Committee’s chief strategist, told CNN.

“I think if we go into a convention, whoever gets 1,237 delegates becomes the nominee. It’s plain and simple.”

Spicer then blamed left-wing agitators for the violence at ­recent Trump rallies.

“It’s the left, and the people on the left that have disrupted events are trying to go in and undermine people’s First Amendment rights,” he said.

If Trump doesn’t win on the first ballot at the July convention in Cleveland, the party would stick to the rules and pick a candidate, Spicer added.

Ex-House Speaker John Boehner said he would support his successor, Paul Ryan, for president if Republicans can’t agree on a nominee at the convention.

But Ryan (R-Wis.) said he is not interested in running for the White House.

Ohio Gov. John Kasich, who scored a big win in his home state to deny Trump a sweep Tuesday night, said he’s staying in the race because neither the Manhattan real-estate mogul nor Texas Sen. Ted Cruz could defeat Hillary Clinton in November.

But there’s no hope of Kasich winning enough delegates to take the nomination, meaning he’d be dependent on a brokered convention.

Trump’s wins Tuesday brought his delegate total to 673. Cruz has 411 and Kasich 143. Florida Sen. Marco Rubio left the race with 169.

Meanwhile, some of the radicals behind the violent demonstrations at Trump’s canceled rally in Chicago last Friday vowed to stage demonstrations in Washington, DC, next month.

With Post Wire Services