There's not really a way to stop someone else from using your Clash of Clans account, since the game is connected to your Apple or Google Play account. The best thing you can do is create a strong password and make sure not to share it with anyone.