Train crashes into mans car as he lifts barrier