The city’s cops are fed up, and it’s easy to understand why. Still, this is no time to abandon New Yorkers.

Yes, they’ve been abused, disrespected — even smeared by their own mayor. The final straw: their commissioner’s decision to fire one of their own for just doing his job.

On Monday, Police Commissioner James O’Neill dismissed Officer Daniel Pantaleo over the 2014 death of Eric Garner. That followed a spate of outright attacks on police, from water-dousings to physical confrontations.

In 2014, after Mayor Bill de Blasio, in effect, called cops racists and invited the police-hating Rev. Al Sharpton to an event with then-Commissioner Bill Bratton, cops were beyond livid. They literally turned their backs on the mayor. Things couldn’t get worse — except, they just did.

Police Benevolent Association head Pat Lynch is now telling members to consult with supervisors before making arrests, urging they use the “utmost caution” and document every instruction. In short, a police version of a work slowdown. It’s dangerous stuff; he needs to tone it down.

True, it’s unthinkable that New York’s Finest would shirk from their duty. Despite the attacks, they’re dedicated, heroic officers, committed to protecting their fellow citizens. Yet they’ve been pushed pretty far.

Cops need to hang tough and do their jobs. They’re New Yorkers’ only line of defense. But public officials — the city’s district attorneys, lawmakers and the mayor himself — need to back them up.

It’s not enough for de Blasio & Co. to say nice things about the police; they need to show their support, via, for example, full-tilt prosecutions of law-breakers, particularly those who attack police.

The city’s at a crisis point. Everyone in a leadership position must understand that the safety of the public is foremost — and cops need help to ensure it.