This idiom is used to mean that you should do something to avoid losing any more money. Example: When he felt that his project was failing, he had to sell everything to cut his losses.