You may drive around lowered gates or cross the railway tracks while the lights are still flashing: