When crossing railroad tracks that are parallel to the road, you should:

To safely cross railroad tracks, trolley tracks, or pavement seams running parallel to your lane, move to a lane position that will allow you to cross them at an angle of at least 45 degrees. Then, make a quick, sharp turn. If you try to edge across, the tracks or seam could catch your tires and throw you off balance.
DMV Writen Test