Diamonds don’t disappear by themselves. Sometimes players accidently tap “Speed up” or “Buy resources” buttons. Unfortunately, these actions can’t be cancelled.
Please note that you can switch the “Diamond spend confirmation” option in your game settings.