You're missing my point. What both characters did was dumb, but Teach almost died doing so. He needed to make a new ally(Shiryu) to get out of the situation. Xebec got out of his dumb situation consequence free because Imu did nothing, and the Gorosei and HK also just weren't in the scene at all, which doesn't really make sense. That's worse plot armor then even Luffy probably has.