The system you have in hands is a bit old (CPU date from 2008, GPU from 2012), maybe all you need is an internal full system clean (all heatsinks, fans, cables, in short the whole cae and components). After that, if its still close the game ,then you may need to re-paste CPU and/or GPU. If the thermal paste is dry it wont transfer heat efficiently and thus it gets hotter than it should.
Also depending on the PC Case and how hot is your room temp, you may need to add more case fans.
But yeah keep in mind that youre dealing with components that have some good years on thier back.
Be sure to ask someone with expertise to help you out cleaning the PC if you never done it before. And always turn OFF the PC and unplug it from the wall outlet before touching anything!!!
Cheers!