In order to avoid accidental spending of gems, you can activate the Gems confirmation function.

Tap the gear button on the top left -> Use gems confirmation. After that you'll get a pop-up message every time you spend gems.