(Using Blender 3.6.8)
Instead of relying on the distance in (X,Y,Z) space, only the projection along X of the vector connecting the actual face centre (Position node) to the nearest face centre (Position socket of the Geometry Proximity node) is compared by the Less Than node to the user defined threshold. This distance is computed by the four nodes outside of the frame delete trees based on distance to identify the modification.