It is hard to recommend a specific product but do not assume just because its advertising says it is a safety fence that it meets either your community code or the general national one. Rules for the gate are different than for the fence.
Generally 3 rules are required for the fence: Must be 4' high, spaces between the pickets must be under 4" (I used a 2x4, which is 3 5/8") and the fence cannot have climbable cross bars.

Rules for the gate and spacing are more stringent, but it must be self-closing and self-latching and out of reach of a small child, either inside the gate or above the gate...about 5' up. A Magnalatch is one solution.