When setting up these cabinets, the NFPA 14 mounting height is measured from the finished floor to the hose valve centerline. You've got a window between 3 and 5 feet, but hitting 48 inches (1.2 meters) is the standard move. It satisfies fire safety codes and ADA reach rules at the same time.
Watch the hallway projection, too. Surface-mounted units shouldn't stick out more than 4 inches, or they become a snag hazard in the exit path. For narrow corridors, stick with fully recessed or semi-recessed boxes. It keeps the walkway clear and ensures the cabinet doesn't turn into a bottleneck when people are trying to get out fast.

