It is your misconception.Every verse in quran has some back ground and context.Just picking up few verses from here and there will give you wrong implication.Islam discourages any voilence against innocent but it also commands to fight against aggressor till death.