The railway is a dangerous place and you should not be there in the first place before there is a high chance that you could get hit by a train. Don't take this as a joke as the threat is possible and to be honest, there are a lot of people getting an accident on the railway every year. But, if you driving your car there and there are no other place closer to where you need to go, you don't have a choice, you need to park your car there. Just don't forget to look both ways before parking your car and observe some safety precautions. It won't be easy, but it can be done.
In this game, you need to drive and park your car beside the railway as fast as you can. You need to do this twice or thrice in a single level. After that, you can get out of the railway and to the next level. Drive with safety in mind since you would be needing that. Try not to hit anything while driving as that would lower your health or in some case might cause your car to be destroyed. The game has a time limit, so take notice of that all the time.