The force is only very short range.
When close, it is an attractive force.
When VERY close, it's repulsive - there must be a distance where the force is zero and it's a stable separation.
(That's as deep as I can go - I'm sure there are better modern theories)