Gas leaks can be prevented by having regular maintenance checks on gas appliances, installing carbon monoxide detectors, and reporting any suspicious smells or signs of gas leaks immediately.