When you want to describe narrowly avoiding disaster or barely escaping, you'll probably say you escaped "by the skin of my teeth". That phrase originated from the Bible.
I have been reduced to skin and bones and have escaped death by the skin of my teeth.