What does 'By the skin of your teeth' mean?

If you do something by the skin of your teeth, you only just manage to do it and come very near indeed to failing.

Idioms similar to 'By the skin of your teeth'

See also: