There is a check valve to allow the gas coming in to the fuel pump to go one way. However when the needle closes in the carburetor, the pump is not able to push any more through. The pump works by charging a spring and the force of the spring determines the fuel pressure.