Elon Musk has said ending tax credits of up to $7,500 for electric vehicle purchases would "devastate" Tesla's competitors.