A man who had one too many drinks and fell into the path of an oncoming train was dragged to safety with only seconds to spare.

The near-death incident happened in Phoenix, when the man stood up to board a train which was arriving at his platform. Security footage shows the man staggering with his bag for a couple of seconds, before falling headfirst onto the track.

But then -- as the headlights of the train get closer -- two police assistants spring into action, managing to lift the man back to the safety of the platform.

One of the police assistants said of their rescue, "We really didn't have the time to think about it. It was just something we saw right in front of us. I feel like if we would have thought about it, the whole situation would have been different."

Keep reading to check out the video, and don't worry, while the video cuts off before the drunk and the officers are safe, cops insist that no one was injured.