means that
the old expression refers to being reduced to desperate circumstances or facing serious financial hardship; it has also been used of rushing towards ruin.
similar to
To catch a rainbow.
When you try to do something that is impossible., the saying “To pull the devil by the tail” is appropriate.