You can not walk through a railway otherwise you will be hit by a train.
Which of the following two sentences does not make sense?
Options:
a. "he walked through the hallway to another room"
b. "he walked through the railway to another room"