Drivers who run red lights at level crossings could automatically lose their licenses for three months.