The officer sprung into action quickly enough to get the woman off the tracks with seconds to spare as a train was arriving.