If you roll the dice, the dice is rolled. You either teleport before that, or after. If the condition is "someone tries to stab me" then he teleports before, if the condition is "I get stabbed" then after. You can't say "lets wait to see if he will miss and teleport only if he hits, but before I...