It's important to understand the reasoning behind stopping before a railroad track. The biggest, most important reason is this: safety. Especially for large vehicles carrying passengers or dangerous materials, this is even more important. Trains are heavier and harder to stop than even a fully loaded semi truck.