As someone films from behind the cop, one of the men steps forward. The officer kicked him, sending him lurching to the ground.

“Step back! I don’t want to hurt you!” the officer yells as a second man approaches. He kicked that man down as well. But he got up, and the the video shows the officer swinging his baton to hold him off.

As three of the men menacingly walk toward the cop, someone gets in front of them and tries to hold them back. But yet another attacker joins the fray and awkwardly rushes the cop — only to stumble off the platform and onto the tracks after the officer brushes him aside.

Patrolmen’s Benevolent Association President Patrick Lynch lauded the officer and blasted Mayor de Blasio’s handling of the city’s homeless population.

“Once again, in de Blasio’s New York, we see a police officer having to rectify a problem allowed to fester by the inaction of this administration,” Lynch said. “The officer was responding to a complaint from a woman of harassment by these homeless men at the station. He used textbook defensive measures taught in the police academy against overwhelming odds in an effort to protect himself and anyone else on the platform. He is to be commended for good work and courage.”