The damage is triggered by successful activation of a spell, but it is applied before the spell takes effect. Accordingly, targets will take damage if they use a spell to remove Backfire; they can also die by casting a healing spell.