Assuming your post is serious, I fail to understand how it is the source of the problem. Utter clowns that disobey the rules for using such crossings are the problem.
If there is no way to stop the utter clowns, the only logical solution, if the aim is to avoid collisions, is to remove the level crossing and replace with a bridge. This may involve a reroute of either the road or the railway. If the true cause of the problem cannot be eliminated, mitigation is the next step.