This should turn the gear off completely, allowing you to turn it back on.
This will not erase data from the unit.
The gadget will power off and come back on, requiring you to go through the initial setup.
FAQ
My Nexus 5X is stuck in a bootloop.
What do I do?
Its a common problem.
I recommend you try thebootloop fix posted at XDA.