Early detection and treatment of H. pylori infection can significantly reduce the risk of developing stomach cancer. Regular screening, especially in high-risk populations, is vital. Additionally, maintaining a healthy lifestyle, including a balanced diet rich in fruits and vegetables, reducing salt intake, and avoiding smoking, can help lower the risk.