While some risk factors like genetic predisposition cannot be altered, certain preventive measures can reduce the risk of chronic bile duct inflammation and subsequent cancer. These include maintaining a healthy lifestyle, managing underlying conditions like inflammatory bowel disease, and regular medical check-ups to monitor liver function.