On the relationship between the mechanical and the thermal instabilities of crystalline lattices