Antonio Guterres has warned that twin crises in Ukraine and Gaza have put the world in an exceptionally dangerous situation.