"Escaped with the skin of my teeth" is a literal translation of the Hebrew. But its meaning is a pun on a very similar sounding phrase meaning "with great difficulty or barely." The Ancient Jews loved their puns and turned them into figures of speech.