The idiom means being cautious when dealing with dangerous or untrustworthy people. Option B correctly captures this meaning of maintaining distance and protecting oneself when interacting with those who may harm you. Options A, C, and D are literal misinterpretations that miss the metaphorical warning.