Is that a quote or did you just make it up?
It is so accurate it’s not funny.
Framer,
No, he/she/it (Note: I am trying to be gender agnostic) didn't make it up, just misquoted so as to almost obscure the simple meaning.
The source of the original is lost in the mists of history, but has been used by Churchill, Margret Thatcher, a number of Australian politicians and pundits.
The original (Churchill) version was:
"If you are not a socialist at twenty, you have no heart, if you are still a socialist at forty, you have no brains".
Tootle pip!!
PS: An earlier version seems to go back as far as John Adams in the mid-1700s.