As far as I know there are not effective restrictions on going to the toilet, although they will indeed get suspicious if you keep going too many times in the one exam. On top of that, going too many times keeps you away from the exam itself, and that's not good.
Just make sure you go...