When the pressure of the incoming gas exceeds the set point, the diaphragm moves to close the gas flow, thus reducing the pressure. Conversely, if the pressure drops below the set point, the diaphragm allows more gas to flow in. This dynamic adjustment ensures a steady and reliable output pressure, which is crucial for the safe operation of gas-powered devices.