Use Layers to Prevent Intersections

The numbers under the intersection icon in the Layers panel (Document > Layers > Layer Settings) indicate the number of the intersection group the elements on that layer belong to.
Intersecting elements that belong to the same Layer Intersection Group will be joined to each other, provided they are drawn correctly. Elements on different Layer Intersection Groups will not be joined.
Note: Layer Intersection numbers have nothing to do with element priorities; they serve merely as tags or labels (e.g. 1 or 2) for grouping elements.
Note: Two elements that are both set to intersection group 0 will NOT intersect.
Note on Intersection with Hidden Layer: Elements having identical intersection groups will intersect even if one of the layers is hidden. This may result in “missing” lines, indicating an intersection with an element on a hidden layer. To avoid this, go to Layer Settings, select one of the layers, and assign it any different intersection group.
Exception for Level 0: Elements which are both on intersection group 0 (whether on the same or different layers) will NOT intersect.