Rule of law can ensure peace and stability: President 