Rama killed Vali from behind because Vali had become an Aatatai (the criminal in Vedic text). He banished his brother from his own kingdom, threaten him, takes away his wife. Lord Rama explained to him all his wrong and cruel deeds which were the cause of his death.