What is the meaning of [young saint, old devil]

Those who behave best when they are young are often those who behave worst when they are old.