The fork steerer must be cut cleanly and leave about 2 to 3 mm of clearance below the top of the stem (or the last spacer if present) once installed. This play is necessary for the proper tightening of the headset: without it, the top cap cannot apply its pressure.
See the preliminary check diagrams in the official installation guide: