Look both ways down the track to see if a train is coming is one obvious solution. A train will sound it horn on the approach to any unmarked crossing, so listing for the train horn sounding is another way too. Why do fast train lines have platforms despite the trains on these lines never stop?