"Fail to" seems to have to meanings of "not do" and "not succeed" How can you tell the difference? The following seems to mean "not do", but "not succeed" at the same time.
ex)You will be sorry if you fail to save for the future.
This would be confusing even to native speakers, I guess.