In everyday life
A flight school trains pilots in a simulator and flies passengers in a real plane. A simulator that is secretly wired to a real plane’s controls is no longer a safe place to practice.
One case
A developer tests a new “cancel every booking on a date” button for a hotel booking site on their laptop. Last week they pointed the laptop at the production database to chase a bug, and they never switched it back. The test cancels 312 real bookings for Saturday, and the support team spends the weekend apologizing.
Every case
Teams run the same code in several places so that they can try things where mistakes are cheap. A mistake on a laptop costs little; a mistake in production reaches real people and real money. That protection works only if each copy is really separate: its own database, its own keys, its own email sender. One setting that points the wrong way turns a safe test into a real action.
The word
Engineers call this
Give each environment its own data and keys, and make it obvious which one you are in. Try a change in a copy before production, and never give a test copy production keys.