You choose whether to add or remove a counter when the second ability resolves. You can’t choose to remove a counter if there isn’t one there.

Artwork
Loading artwork…
Plague Boiler
Commander 2013 · #254 · EN
Nonfoil—Foil—
Card rules
At the beginning of your upkeep, put a plague counter on this artifact.
1
: Put a plague counter on this artifact or remove a plague counter from it.
When this artifact has three or more plague counters on it, sacrifice it. If you do, destroy all nonland permanents.
Rare · Illustrated by Mark Tedin
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If the third ability triggers, removing a counter in response won’t stop the effect. However, somehow removing Plague Boiler from the battlefield in response would stop the effect because then you wouldn’t be able to sacrifice Plague Boiler.
The sacrifice is done on resolution of the triggered ability.