Structural Stability in Statistical Mechanics