Turn off or kill the fluid source up the line from the gate valve you want to reduce. Preferably, this would be at another gate valve. If possible, open the down line release and drain the fluid from the pipe.
Detach the down line side of the gate valve from the existing pipe with the pipe wrench. Remove the flange bolts if the gate valve is flanged or unscrew the collar if the valve is threaded.
Attach the reducer down line of the gate valve. Beforehand, cover the pipe threads with Teflon tape, if the gate valve is threaded. If it is flanged, cover the flange gasket with silicone.
Attach the replacement pipe to the reducer.