Aliens will come to Earth to warn people

Harry Bates : science fiction author
Humanoid alien visitor will come to Earth, accompanied by a powerful robot, to deliver a message of utmost importance to humanity. An alien will tell the people of Earth that they must live peacefully or be destroyed as a danger to other planets.

Novel "Farewell to the Master"