What is the result of intermolecular forces being repulsive and attractive at varying distances?

Once molecules become close enough to touch, intermolecular forces become repulsive. This is what prevents one molecule from overlapping another. Intermolecular forces pull molecules together at a long range and hold them apart at short range.