proverb

Advice is least heeded when most needed.

advice

said to mean that

When a problem is serious, people often are lost and do not follow the advice given. Also it is said for foolish people who need advice but won't take it.