Gary Cohn “loves” the US justice system — because no Wall Street executives went to prison.

The former Trump adviser and Goldman Sachs president said on Monday he believes no Wall Street executives had done anything criminally wrong in the run-up to the financial crisis.

“I don’t know what law was broken,” he said during an event in New York. “I thought the US criminal justice system worked.”

“I love the justice system in this country,” he added.

At one point, Cohn turned the tables on his interviewer, Reuters columnist Gina Chon, and grilled her about what anyone had done to have deserved to go to prison.

Chon, who was nervous on stage, couldn’t muster the word “fraud” or drop a hint about former Countrywide CEO Angelo Mozilo, who had been criminally investigated by the Justice Department office in San Francisco, but was never charged.

At one point, Cohn even expressed sympathy for one of the villains of the financial crisis — former Lehman Brothers CEO Dick Fuld.

“Did Dick Fuld not have his entire net worth wiped out? Who has Dick Fuld defrauded? Himself,” he said.

Fuld, who now runs a stock exchange, didn’t in fact have his whole net worth wiped out, and in 2015 sold a 71.3-acre Sun Valley, Idaho, ranch for $20 million, The Post first reported at the time.

The comments by the famously aggressive Wall Street banker came during Cohn’s first public appearance since he stepped down from his role in the White House earlier this year.

Later during the event, an audience member asked Cohn if he thought a Wall Street executive would make for a capable president — a conspicuous question after JPMorgan CEO Jamie Dimon said last week he’s “smarter” than Trump.

“Jamie would make a phenomenal president,” Cohn said.

“It’s in many respects similar to running a complex multinational global firm.”