Mass of a housefly is approximately .000012 kg, Mass of a locomotive engin is roughly 100 Metric tons or 100,000 kg
Assume a slow velocity of the train lets say 1 m/sec
v1= (100,000 kg-m/sec)/.000012 kg
v1 is faster than the speed of light, so the housefly can't stop a train.