Spoilers for Dawn of the Planet of the Apes below.
Koba is able to blame the destruction of the ape settlement and the apparent death of Caesar on the humans, riling up the other apes and setting himself up as their new leader. However, the other apes only began following Koba because they believed Caesar to be dead.
Given that the other apes supported Caesar so much that they went to war when they believed he had been killed, how was Koba able to justify imprisoning those deemed "too loyal" to Caesar to the other apes?