As you age into your 40’s+ your focus at the gym should not be on setting new lifting PRs but instead building/maintaining muscle while avoiding injury.
Injury -> losing the ability to exercise -> loss of lean tissue.
Lean tissue loss accelerates with age and gets increasingly difficult to gain back.