Network Rail says there have been multiple instances of potentially life-threatening misuse of a Cheshire level crossing in the past year.
On Monday (20 November) a delivery van left parked on Barthomley crossing was nearly hit by a London-bound train.
The driver opened the first gate at the crossing then drove onto the tracks, then stopped, got out of his vehicle and opened the second gate to exit the crossing.
While his van was stopped on the crossing the warning lights changed green to red and the driver of the approaching train had to slam on his brakes so he did not hit the van.
Lucy Chadderton, level crossing manager for Network Rail, said: “Stopping a vehicle on a level crossing puts your life and others’ lives at risk.
“We’re investing more than £100m to improve level crossing safety across Britain, but we need motorists, cyclists, horse-riders and pedestrians to do their bit too.
“By paying attention to the clear user instructions at level crossings and avoiding distractions we can all stay safe.”
Network Rail has warned it could lead to children and animals wandering onto the track and potentially being harmed.