How do I keep my muscles from cramping and stiffening?

Stretching. Muscles need to be exercised. Stretching and strengthening of muscles will help them be in optimal health, minimizing cramping and stiffness.