Because damage remains marked on a creature until the cleanup step or an effect removes that damage, nonlethal damage dealt to a creature may become lethal if you switch its power and toughness during that turn.

Artwork
Loading artwork…
Aeromoeba
Modern Horizons 2 · #389 · EN
Nonfoil—Foil—Etched—
Card rules
Flying
Discard a card: Switch this creature's power and toughness until end of turn.
2/4
Some clouds heed no wind.
Common · Illustrated by Victor Adame Minguez
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Effects that switch a creature's power and toughness apply after all other effects, regardless of when those effects began to apply. For instance, if you switch Aeromoeba's power and toughness and then give it +2/+0 later in the turn, it's a 4/4 creature, not a 6/2 creature.
Switching a creature's power and toughness twice (or any even number of times) effectively returns the creature to the power and toughness it had before any switches.