airplanes and pregnacy

how far along do you think it's ok to be in a plane and pregnant?