On the ropes

Meaning 1
the term refers to the ropes around the boxing ring
Sentence 1
Mohammed Ali was winning the fight and his opponent was on the ropes unable to defend himself.
Meaning 2
If a person, business venture or politician is on the ropes, he or she is in a difficult place.
Sentence 2
The company was deeper in debt and on the ropes.