First, make sure you absolutely know you want to break up with them. Second, introduce the idea to them slowly. Suggest that you might be better as friends and continue from there based on their reaction. If they take it poorly enough, threatening to kill you or themselves, they may be a toxic relationship and you need to seek professional help.