matarse a+infinitivo: esforzarse mucho para hacer o conseguir algo. [España]
-Se mató a estudiar/estudiando para aprobar el examen — He knocked himself out studying for the exam
-Se mataron a trabajar en las minas — They worked themselves to death in the mines
-No te mates haciéndolo — Don't kill yourself doing it