To take this conversation sideways a bit, the quote you provided seems to be a variation on a quote that has been mis-attributed to George Bernard Shaw, Winston Churchill, Benjamin Disraeli and others:
“If you’re not a liberal when you’re 25, you have no heart. If you’re not a conservative by the time you’re 35, you have no brain.”
It is a biting quote that seems to have no real historical figure standing behind it. There was, however a 19th century French historian and statesman, François Guizot who said:
“Not to be a republican at 20 is proof of want of heart; to be one at 30 is proof of want of head.”