Question: is it illegal to drive with dim headlights?
Answer: Since the law requires that drivers dim their headlights within 500 feet of an oncoming car, a strict interpretation of the law would indicate that flashing your high beams is only legal when you're more than 500 feet away from the approaching car.