By the skin of one's teeth — barely, narrowly. Usually used to describe an escape from disaster by fortunate chance. Learn more English idioms and improve your English from home at your own pace with