Wiktionary
don't knock yourself out
phr. (context idiomatic ironic English) Don't overexert yourself (in doing something that does not require much effort).
Usage examples of "don't knock yourself out".
So what I wanted to say to you, Milo, is don't knock yourself out on this one because you aren't going to win it.