Stirring prevents superheating by distributing the heat evenly and reducing the risk of sudden boiling when agitated.