I am convinced in large part that overall, your average, everyday schnooks are uninformed. Were it otherwise the general public would be less inclined to get themselves into a situation where death or great bodily harm is in the offing. It would also mean that fewer questions with regard to grade crossing safety, or lack thereof, would be posted here.
Statistics indicate that where Operation Lifesaver programs have been produced, injuries and fatalities have declined. But, this is largely a volunteer program relying on generosity for the programs to be presented.
As a parent, or as an employer where employees were going to be around moving equipment, I would make sure the ones who have been entrusted with the education of my child have railroad safety as a part of the curriculum each year right up through grade 12, and that employees received similar education.
Go to a PTA meeting or a school open house and find out whether there is a program(s) dealing with these varying issues. This is even more imperative if children coming from or going to school must cross any tracks to get there.
But, you can't legislate common sense and as a result, people circumvent crossing protection everywhere. I can scarcely remember a trip where at least one car didn't go around a lowered crossing gate (stupidity is just nature's way of thinnin' the herd).
As a practical matter, as long as people are willing to show disregard for their own safety, I don't see how they could be made much safer. But, there can be incentives for obeying the law. A camera mounted with the rest of the safety hardware that'll catch a driver's face and license number whenever they roll the dice would go a long way towards better compliance. In California, the penalty for going around the gates is nearly the same as it is for a first time drunk driving arrest, if caught. Understand that the danger is to everyone around whenever an idiot makes his ill advised move, since a collision with a vehicle can result in a catastrophic derailment involving some rather nasty cargo.
Failing that, the carnage will continue.