It can be applied very near the pulp, as long as there are no exposures.  If the Advantage Arrest leaches through infected or affected dentin to the pulp it is not a problem; only when there is exposure.  Placing Advantage Arrest over a GI will only help the margins from secondary decay, and will give you surface staining.  Under GI will provide a strong liner and protection from secondary decay.