From a condition for thermal stability of the plasma boundary in tokamaks, an upper limit on the density which is consistent with the experimental observations has been derived.