A man and a boy are standing next to a train.
A man and boy are standing by a train.
That the first sort of chill is easily transmuted to the second may explain why scary movies are popular date-night  To be scared is a short step from being sexually aroused.