Sometimes user adds additional line on Grids tab of Axis dialog. When it’s outside axis range in layer, user doesn’t expect it to still show.
Add a system variable @SAL to toggle. Default still show (default value @SAL =0). When @SAL =1, the additional line outside layer would not show.