It teaches both, actually. It's starts out with peaceful teachings and beacons increasingly violent throughout. It mirrors the life of Mohammad.
True, with an asterisk.
Mohammad allows his insane to show as his tribe increases in numbers. Sort of today's playbook on how to spread Islam. Imagine that.