I do not quite understand the following line of reasoning:
Why does Na not form $\ce{Na^{2+}}$ ions? To obtain $\ce{Na^{2+}}$ ions, the first and second ionization energy must be applied: 496 + 4563 = 5059 kJ/mol. The lattice energy of an imaginary "$\ce{NaCl2}$" would have to be in the same order of magnitude as for $\ce{MgCl2}$ (-2525 kJ/mol).
So far everything is understandable...
This amount would not be sufficient for ionization, the removal of an electron from an ion with noble gas configuration costs too much energy.
Why can magnesium form $\ce{Mg2+}$ ions? The magnesium atom reaches the noble gas configuration when two electrons are donated. The sum of the first and second ionization energies for magnesium is considerably lower than for sodium: 738 + 1450 = 2188 kJ/mol. The lattice energy of -2525 kJ/mol is high enough to provide the energy needed for ionization.
I don't understand why the lattice energy released has to be sufficient for ionization (at all why any ionization should even take place here). I wonder in general where the connection is.
One is the heat release when positive and negative ions in the gas state are combined to form a crystal and the other is just the energy to knock out electrons. Why does the lattice energy have to be high enough now to apply the first, second etc. ionization energy?
(In this section and before in the book the entropy or Gibbs energy was not introduced yet, the author himself says: "The correct quantity to be considered here is the free enthalpy instead of the enthalpy. However, we do not commit a big mistake if we calculate with enthalpy in this case".)
That's the information I'm taking out:
$$\ce{Na -> Na^{2+} + 2e-} ~~~ \Delta H = \pu{5059 kJ/mol} \\ \ce{Na^{2+}(g) +2Cl-(g) -> NaCl2 } ~~~ \Delta H \approx \pu{-2525 kJ/mol}$$
Then it is said that the amount of the lattice energy is not sufficient for the ionization of Na. This is true, after all 2525 kJ < 5059 kJ and now? Why should the lattice energy be used for this? I don't know what the author wants to make clear now, the jump to the original question why Na does not form $\ce{Na^{2+}}$ ions does not work for me. Why should the lattice energy even be responsible for the ionization of Na?