To avoid becoming a 'Rougai', it is generally advised to continue learning, accept changes, and so on.
I believe that the only way to prevent becoming a nuisance as we age is to maintain both physical and mental health. This is because individuals who are healthy in both mind and body have a stable mentality, which allows them the capacity to embrace new things and communicate appropriately with people of any generation.