There is a proverb, 'a cornered rat will bite a cat,' which means that a person driven into a desperate situation will fight back even against an opponent they would normally fear.
This ancient proverb, 'know the other side and yourself, and you will not be in danger in a hundred battles', teaches us the importance of understanding ourselves and others.