The best times to avoid the crowds are very early in the morning, or in the late afternoon. Most trails start to see less traffic around 4pm, and the sun stays up past 9pm giving you plenty of time to explore. The least crowded area of Glacier is the Polebridge area.