The clip above will make your heart skip a beat, but thankfully this dangerous decision did not end in tragedy. A man in Redwood City, California, ignored the guard rails and ran across railroad tracks just moments before a speeding train passed with its horn blaring.

DASH CAM VIDEO: Deputy Sobs After Shooting 70-Year-Old Vet

WATCH: Driver Hits Girl With a Broom in School Bus Brawl

A group of three people crossed first, and then then the fourth person hesitated for a second before deciding to run across.

The surveillance video was just released by California transit officials, who say incidents like this are investigated.

Watch the harrowing clip above.