A 'rope' is thrown to
someone who is in a difficult place, such as deep water or the edge of a
cliff. If there is not enough rope, the person might be in trouble. So to
be 'at the end of your rope' means that there is no more help available,
and the situation is not good.