We have the technology now to move the earth away to maintain a constant safe distance. It will take a long time to matter, so moving a few asteroids here and there should take care of it. Then again, eventually we'll become too close to Mars, so something will have to be done about that.