Federal prosecutors have warned Elon Musk that his $1 million-a-day voter petition sweepstakes may be illegal.