Beaten within an inch of one's life

I'm looking for information about the phrase "Beaten within an inch of one's life." Any documented history, not just conjecture? Thanks in advance!