por los pelos

by the skin of your teeth

→ por
phrase Rare #29,768
by the skin of your teeth Used when something succeeds or is avoided only just, by a very narrow margin. In sentence 4, the similar wording is literal: “through the hair.”
SP: Llegamos al tren por los pelos.
EN: We just made the train.

Estuvo difícil el examen pero creo que aprobé por los pelos.

The exam was difficult, but I think I barely passed.

¿Te has salvado alguna vez por los pelos?

Have you ever had a close call?

Siempre pierdes por los pelos.

You always lose by a hair's breadth.

— Devdas (2002)

Él tuvo un accidente de tráfico y escapó de la muerte por los pelos.

He was in a car accident and narrowly escaped death.

Por los pelos.

By the skin of its teeth.

— Ratatouille (2007)

Él se libró por los pelos de ser atropellado por un coche y morir.

He narrowly escaped being hit by a car and killed.

Aprobé el examen por los pelos.

I barely passed the exam.

Si gana, se habrá salvado por los pelos.

If he wins, he will have been saved by the skin of his teeth.

— Lagaan: Érase una vez en la India (2001)

Tom se libró de la muerte por los pelos.

Tom narrowly escaped death.

Ganará por los pelos.

He'll win by the skin of his teeth.

— Oppenheimer (2023)