pool access

Looking to find what the min. height requirement that would allow a wall that was not
Climbable with access from grade down into a pool area.
And would this height also be good for a deck over hanging a pool area that would not require changes to the guardrail