Iranian President Hassan Rouhani said on Tuesday the country had to develop its military forces to prevent other states taking over its territory and resources.