Try to annihilate the enemies before they grab a gem, but even if they do, you’ll have a chance to stop them on their way back and save your gem.

Use your mouse. Hold SHIFT to build multiple towers or cast multiple spells.
You can also use hotkeys.

See in-game hints and tutorial for more info!