President John Magufuli has sent a strong warning to those planning to hold demonstrations across the country.