1. Gravity = pulling at each other
2. Centrifugal force = trying to move away from each other
Keeps them at a safe distance.
The moon is slowly moving away from the earth. So in the far future it will be significantly farther from earth than it is now.