The answer depends on the red light of the railroad crossing signal: it bans entering the crossing regardless of whether there is a gate and what position it is in. The red light comes on in advance, before the train arrives and before the gate comes down, so neither a raised gate arm nor empty tracks mean you may go. You must stop before the crossing, at the signal, and wait until the red light goes out or a flashing moon-white light comes on