If you come to a railroad crossing with lowered gates and flashing warning lights, you should:

You must stop at a railroad crossing where signs, warning devices, or flaggers warn you of the presence of a train. It is illegal to drive around lowered gates.
DMV Writen Test