"It's funny that there are people who are good at giving alibis, but it would be better if they first thought of the best alibi they could..." The last sentence means "So that it doesn't hang" literally, but I'm not really sure what it would mean in this context.