(a) there's probably some law in some state that makes it illegal [what they don't know can't hurt you] but (b) if it's an obvious malfunction, you can see clearly in both directions, and there's no train coming....I'd cross the tracks. Have done this before.