This American Idiom generally means that although the
speaker thinks they are correct or safe in their course of action, things
beyond their control may change that and they feel that it would be better
to plan for the possibility of those bad things happening rather than have
them happen and wind up screwed.