How do I turn off the warning before I spend gems?

By default, once you are past the first few levels of the game, the game will start to warn you before you spend gems. You can turn this off if you want. Or you can change it so that it only asks you to confirm above a certain amount. There is a slider in the settings menu that you can use to determine how often the game will ask you if you want to spend gems.