Minecraft wiki entry for Combat, associated text: Know when you are beaten. If your opponent has significantly better equipment than you or you are not well prepared to engage combat, then you are highly unlikely to win the fight.