My company specifically designed a device that is purpose built to prevent people from crossing level-crossings, but we don;t have the kind of political connections to get a contract for installing them because of shady politicians and croneyism to whomever controls the existing contracts and construction clauses.

It's built into the ground about 15 feet before the tracks and has all the neccesary operating sensors built into the road to detect a vehicle trying to cross. It could even automatically deploy to block the whole street whenever the train crosses so as to prevent any automobile crossing whatsoever. Alas, all the money that greases palms in politics does us zero favors. It's a shame as these systems are extremely robust and adept at saving lives.