By default, if an on-edge pin’s layer is not the preferred layer, the pin is
snapped to the closest wire track on preferred layer during pin placement.
You need to use the set_fp_pin_constraints -hard_constraints layer command
if you want the on-edge pins on a non-preferred layer