"Don't exert yourself much," is more focused on the effort of anything (i.e. sport training, lifting heavy stuff, etc.).
"Don't overwork yourself," is more related to doing too much of a task like working at a job, helping too many people, etc. Exert is more short term whereas overwork could be over a longer time period.