What is the meaning of [By the skin of your teeth]

To just barely get by or make it. Lester made the dance team by the skin of his teeth; you can tell he hasn’t been dancing jazz for very long.