A Connecticut man was arrested for holding up a “cops ahead” sign near a police checkpoint — but the charges were dropped, and now he is mulling a lawsuit, his lawyer told The Post on Monday.

“His rights were absolutely violated,” attorney Joseph Sastre said Monday of his client, 45-year-old Michael Friend. “I think a lawsuit would be warranted.

“It’s something we’re still actively considering…the idea is absolutely on the table.”

Friend was arrested on April 12 for holding up a paper sign on the side of a Stamford road with the handwritten message “Cops Ahead” to alert motorists of a distracted-driving crackdown.

Friend, a resident of Stamford, was hit with a misdemeanor charge of interfering with a police checkpoint.

“He was using his First Amendment rights and had his rights violated by the police who arrested him,” Sastre said. “They wanted to serve him for disrespecting them.”

Last week, during Friend’s most recent appearance in Connecticut Superior Court in relation to the case, a prosecutor said Friend’s roadside stunt was actually “helping” police.

“This person set up his position upstream from the police with the sign,” Supervisory Assistant State’s Attorney Steven Weiss told the judge of Friend, according to The Stamford Advocate.

“He thought he was interfering with the police, but the irony was he was helping them do their job because the point was to get people off their cellphones and that is exactly what he accomplished — probably more so than the police would have working alone,” Weiss said. “I thanked him for helping the police and I [dropped] the case.”

Sastre told The Post that the prosecutor had it wrong about Friend’s intentions.

“It’s cute for the prosecutor to say, ‘I want to drop the charges because his stunt backfired on him,’ but that’s assuming that my client’s point was supposed to be to help people get away with breaking the law,” Sastre said.

Sastre continued: “Michael’s point is that this is a policing-for-profit operation and it has very little to do with public safety.”

The lawyer claimed “the police are doing this because they like the overtime” and to dole out tickets.

Sastre said he “believes” in his client’s cause and said he “wouldn’t discourage anyone else” from pulling a similar stunt as Friend did.

Meanwhile, as Friend appeared in court last month on April 26, his pal, Michael Picard, was arrested on a misdemeanor charge of breach of peace for protesting Friend’s arrest outside the headquarters of the Stamford Police Department.

Picard, 29, held up a cardboard sign stating “F—k free Speech- Stamford PD” as he staged the protest with a friend.

According to a police report, cops say Picard was located on the front steps of the department and that he “jump[ed] out in front of a pedestrian with his sign,” but Picard claims neither is true.

“I protested my friend’s arrest because he was arrested for free speech,” Picard, who has pleaded not guilty in the case and is also being represented by Sastre, said Monday.