A defense attorney put his foot firmly in his mouth Friday while arguing for leniency for a gym owner convicted of sexually abusing two of his customers — by likening him to the infamously touchy-feely Joe Biden.

“He’s a hands-on person,” lawyer Joseph Murray said of the defendant, Raymond Wallace.

The gym rat was convicted in June of molesting two clients at his boutique West End Avenue fitness center FIT RxN.

“You might even say the Joe Biden of the fitness industry,” Murray added.

The Democratic presidential candidate and former veep has taken heat for his sometimes cringe-worthy interactions with women — and young girls — whom he has embraced, nuzzled and generally creeped out.

He’s lamely explained that he’s just an old-fashioned kind of guy who likes the personal touch.

Murray begged for probation without jail, but his Bidenesque gaffe did Wallace no favors, as Manhattan Criminal Court Justice Robert Mandelbaum slapped the 40-year-old perv with the maximum 18 months in prison.

Wallace preyed on a 16-year-old girl and a 33-year-old woman who signed up for personal training sessions at the gym in 2017, prosecutors said.

Mandelbaum gave Wallace an additional nine months behind bars on Friday after he pleaded guilty to sexually abusing a third client — a sentence that will run concurrent with the 18 months.

He will also have to register as a level-one sex offender.

Prior to sentencing, Wallace told Mandelbaum that whatever his fate, he would one day return to teaching fitness.

“I love what I do, I love every and each individual I work with,” a teary-eyed Wallace sobbed.

“No matter what happens today and no matter what, I will figure out a way to use my talents, my God-given talents, and give them to the community.”