The US government has issued a note of warning to foreign countries about interfering in the mid-term election on Tuesday.