Expression used to show that someone would agree to some sort of condition if highly pressured. It's usable in place of a "no."
1: Would you sleep with Dave Grohl?
2: I'm a dude and I'm not gay!
1: I know you're a dude, but come on!
2: well, gun to my head, I guess he's not too ugly.