Intermolecular forces are
inversely proportional to intermolecular distances.
In gases, intermolecular distances are maximum and intermolecular forces are least and in solids, intermolecular distances are least and intermolecular forces are maximum. So intermolecular forces are inversely proportional to intermolecular distances.