Do not change gears on railroad tracks because:

It is best not to shift gears when crossing railroad tracks. There is a chance your motorcycle might stall while you are on the tracks.
DMV Writen Test