Word or phrase for a situation when your intention is to save something but end up in loss [duplicate]

One step forward and two steps backward” would often describe these circumstances.