Check if point is on edge of area