Democratic presidential candidate Bernie SandersBernie SandersSanders on difference with Warren: she's a capitalist 'I'm not' Sunday Show Preview: Trump's allies and administration defend decision on Syria Klobuchar takes shots at health and education plans supported by Sanders and Warren MORE said Wednesday that even if he isn't the Democratic nominee, he will do everything he can to make sure a Republican is not elected in November.

"I think Hillary ClintonHillary Diane Rodham ClintonRonan Farrow exposes how the media protect the powerful Kamala Harris to Trump Jr.: 'You wouldn't know a joke if one raised you' Comey says he has a 'fantasy' about deleting his Twitter account after end of Trump term MORE and I agree on this, that we will do everything we can to make sure that a Republican does not win the White House, and I will knock my brains out," he told MSNBC's Chris Jansing.

ADVERTISEMENT

"I will work seven days a week to make sure that that does not happen if I am the nominee and if I am not the nominee. That's what I will do."

During the interview, Sanders said that "of course" his views align much more with Democratic front-runner Hillary Clinton than with Republican front-runner Donald TrumpDonald John TrumpGiuliani says he is unaware of reported federal investigation Louisiana's Democratic governor forced into runoff Lawmakers focus their ire on NBA, not China MORE.

He said he doesn't think Trump "has any judgment whatsoever."

When asked if he believes Clinton is smart, Sanders responded: "Oh, god yes, she is very smart."

Although the Vermont senator acknowledged that he's the underdog, he said he still has a "narrow path" to victory and will fight "for every vote that we can get to make that victory happen."

During a rally Wednesday, Sanders insisted that he was in the race to win it.

"Let me make it clear so there is no confusion,” Sanders said during a rally at Purdue University in Indiana. “We are in this campaign to win and become the Democratic nominee.”