Iran has warned Germany that if Iran's hostile actions continue, its interests in the region will be targeted.