The answer comes from the red light of the crossing signal: it bans entering the crossing whether or not there is a gate and whatever position it is in. The red light comes on early, before the train arrives and before the gate comes down, so neither a raised gate arm nor empty tracks mean you may go. Stop before the crossing, at the signal, and wait until the red light goes off or the flashing moon-white light comes on