Future proofing isn't generally worth it, IMHO. I doubt the difference in performance between a top end am4 CPU and a top end am5 system will be great enough that one can play a game well and the other can't.
And high-end CPU power is generally only really taken advantage of by a small number of games, or at lower resolutions where the game can become CPU bound and push high framerates for high refresh rate monitors.
If you use a 1440p or 4k monitor, then an old CPU is usually more than adequate and won't be the limiting factor; it's the GPU that'll be the bottleneck.
I find it's better to wait until there's a significant enough jump in performance to where the upgrade will provide a truly meaningful benefit, and there are games on the market that truly require that extra performance.
Are you often encountering games that your currenct CPU is not able to handle?