Well thats why you're thinking about it ahead of time.
I distinctly recall the instructors commenting they'd rather face an idiot who gets too close to you with a gun than an idiot who gets too close to you with a knife, the knife will still cut you if you grab it.
They also suggested you comply with anyone who has a weapon unless you have good reason to think they'll kill you anyway.
I Really should take Krav up again, was good stuff.