You are eating in a public restaurant. A group of people suddenly take out their guns and point them at you. You have a gun on you but you don't want to use it because you are afraid of getting shot while pulling it out. Instead you tell them you have placed a bomb on you (you do not), and you will detonate it (you cannot) if they get closer.
Is this legal? What is the most optimal strategy to execute in this situation?