The pump can keep turning while the ram cannot move farther. In the simplified fixed-flow circuit, the relief valve gives oil a controlled return route to the tank.
A limit, not a safety guarantee
By limiting pressure, the relief valve limits the available pushing force. Real press circuits vary, and a relief valve does not make crushing experiments safe. This Short is an illustrative cutaway, not a test procedure.