I don't know about squat and deadlift. I'm in my mid 30s and 20-40% of my friends who squat and deadlift had to stop because they injured their back in the last couple of years. All of them looked like they had great form and half had gone to a trainer as some point to make sure their form was good.
Any athletic pursuit is going to injure you eventually.
Not pursuing any athletics is going to kill you and make the late years of your life frustrating a you lose capabilities. And you'll probably get injured as your body deteriorates.