President Trump took to Twitter over the weekend to weigh in on what would happen to the markets if he wasn't reelected.

The Trump Economy is setting records, and has a long way up to go....However, if anyone but me takes over in 2020 (I know the competition very well), there will be a Market Crash the likes of which has not been seen before! KEEP AMERICA GREAT

— Donald J. Trump (@realDonaldTrump) June 15, 2019

Jim Cramer said that he doesn't believe that the markets will crash if a Democrat with policies like presidential candidate Joe Biden wins the presidency.

"If Biden were elected, the market would go higher," said Cramer.

However, Cramer noted that the economy is "very strong," but there's a "lot of tension in the market."

What could lead to a market crash? Cramer said that it would take a presidential candidate with more socialist policies being elected to cause the market to crash. 

Related. Jim Cramer: Launch of Libra Cryptocurrency Is a Great Reason to Buy Facebook

 More from Cramer Today

Full Replay: Jim Cramer Breaks Down the Fed and Facebook's 'Libra' Cryptocurrency

Jim Cramer Reveals the Question That Could Define the Trump Presidency

Jim Cramer: If You Believe in Boeing, Buy This Stock

How Facebook's Cryptocurrency Will Help Consumers

3 Things That Investors Need to Watch Ahead of Slack's Direct Listing