If you are talking about Runescape, then yes accounts can be recovered. Can you stop this from scamming you? Yes! Very easy all you do is Delete the recoveries, and have the middleman submit a password request with the given and required information. If the password request goes through, then the middleman can then give the information to you and then you can recover the account.
If you are talking about Steam, then yes accounts can be recovered. Can you stop this from scamming you? Yes! All you have to do is change the details on the account (password, secret question, email) and try to get proof of purchase, such as original email or cd-keys.