How much longer could insects live if they are protected from the cold

I know that cold temperatures kill off many insects- particularly flies and Praying Mantids. What if you were to keep these insects in a controlled environment? How long would they live if it wasn’t the cold weather killing them off?