It looks to me like an equality check needs changing from a <= to just <, as selectors shouldn't match entities on the very border of them.
<=
<
I can't reproduce this on a Superflat world in Creative with any blocks at all.
It looks to me like an equality check needs changing from a
<=
to just<
, as selectors shouldn't match entities on the very border of them.