Generally it is preferred to put the tile line in first, clean up any mortar residues, then, paint the pool with appropriate masking of tiles as necessary.