To reduce the risk of someone on your boat falling overboard it's recommended that privately-owned boats have effective handrails fitted where there are walkways.
They are mandatory for non-private boats.
To work properly the handrails must be of sufficient length - where practical the full length of cabin tops - and of adequate strength. Alternatively, guard rails may be fitted around the perimeter of the deck. [10.2]