old enough to know better
Mature enough to have good judgment. This phrase, sometimes completed with but young enough to learn, dates from the nineteenth century. Oscar Wilde played with it in Lady Windermere’s Fan (1892): “My experience is that as soon as people are old enough to know better, they don’t know anything at all.”