Sen. Bernie Sanders can say he wants CEOs to go to jail all he wants, but experts in corporate law say it's unlikely to happen.

In a wide-ranging interview with CNBC's John Harwood published Tuesday, Sanders ripped Wall Street CEOs for "greed" and "corruption," saying that jail should be on the table as punishment for the pain he says their companies have inflicted.

He came down harder on pharmaceutical and energy executives.

Sanders, who is running for the Democratic presidential nomination in 2020, called opioid manufacturers "criminal." The Sackler family that owns and runs now-bankrupt Purdue Pharma, has been accused of promoting the sale of opioids, despite knowing their dangers. Others, including drug distributors AmerisourceBergen, Cardinal Health and McKesson and drugmaker Teva Pharmaceutical reached a last-minute settlement earlier this month for their role in the opioid crisis.

Sanders said Exxon Mobil executives and their peers "knew that the product that they were producing was causing climate change and in fact helping to destroy this planet." Exxon Mobil is battling a lawsuit that accuses it of misleading investors about the risks of climate change regulations to its business.

Sanders, who describes himself as a democratic socialist, has said he wants to use the Sherman Antitrust Act, a federal statute that outlaws monopolistic business behavior, to prosecute CEOs who lead allegedly anti-competitive companies.

Lawyers say such a move is rare, and reserved for CEOs engaged directly in an activity that limits competition, like price fixing.

"It does happen, but the purpose of the Sherman Act is not to send CEOs to jail," said Will Lavery, a partner in the antitrust and competition practice of law firm Baker Botts.

Senior executives at Archer Daniels Midland and Sotheby's auction house have been sentenced for their roles in price-fixing schemes. The former CEO of Bumble Bee Tuna is expected to go to trial in November for his alleged role in a price-fixing scheme with Chicken of the Sea and StarKist. He has pleaded not guilty.

Sanders sidestepped when Harwood asked him about whether his enforcement of the Sherman Act would apply to Boeing CEO Dennis Muilenburg regarding the 346 people who died in two crashes of the company's 737 Max planes. The Vermont senator did say, though, that the subject "is the kind of discussion that we need as a nation, and that will take place when I'm president."

Yet experts who spoke to CNBC said the Sherman Act would not apply to executives like Muilenburg.

Convicting CEOs based on nonantitrust charges poses difficulties as well, experts said. It requires proof of direct participation in a criminal act. Criminal liability for negligent conduct that allows for improper activity without actually ordering it is rare.