The cremaster muscle regulates the scrotum's temperature by raising and lowering it depending on the heat and cold conditions. The cremaster muscle is vital for ensuring spermatogenesis which is a biological process that is sensitive to temperature changes. If the scrotum becomes overheated the developing sperm will form disfigured or even die.