Can my Droid MAXX NOT delete everything if someone enters in the wrong password 10 times? Recently someone was messing with my phone when they shouldn't have been, most likely playing with the password screen (I use the pattern thing with nine dots), and my phone factory reset.

I'm trying to find a way to password-protect my phone so that no random kid at school can access my email, but I don't need to be secure against North Korea trying to hack into it with brute force. I would prefer if this is possible in vanilla (obviously) but if there is a free app required, then that's okay too.

Thank you in advance!
There's no such thing built-in to Android currently. However, you might wish to take a look at AutoErase:


  
  When the number of failed unlock attempts reaches the limit that you specified, AutoErase will reset the device to factory default and erase all user data.
  When the unlock attempts fail, messages warning that the device will be erased after certain number of unsuccessful attempts, will be displayed on the lock screen at the timing of your choice.
  


A pure factory-reset is nothing super-secure, as with some knowledge and the right tools content can be recovered – but certainly enough "so that no random kid at school can access my email" (as it's unlikely that random kid has the required knowledge and tools at hand when at school).

A comparable tool would be Wiper, in case AutoErase doesn't fit your needs.