Legality of violence

“A believer remains within the scope of his religion as long as he doesn’t kill another person illegally.” It is a quote from Islam.

I never find, who has authority to decide the legality of killings.
Is every believer free at his own will and decision?