CBP generally prohibits interviewees from having access to legal counsel during immigration inspection. The American Immigration Council’s Behind Closed Doors: An Overview of DHS Restrictions on Access to Counsel has a fairly thorough account of the restrictions and of their dubious legality.
Credit:stackoverflow.com‘