China has slammed comments by US officials for portraying China as a threat to the Panama Canal, urging Washington to stop spreading misleading remarks.