fight a losing battle

Verb

 * 1) To continue to wage war when it is clear that one is not going to win.
 * 2)  To try to do something so difficult that it will probably end in failure.