Also keep in mind the game is server side which means that if you run out of a red zone 0.5 to 1 second before the cast finishes you probably get hit.
Combination of your own latency and the server making checks where you are.
If the check happened it doesn't matter if you got out.