Checking if Player object is out of bounds

Hello,
I have written a javascript code for checking the player if they have fell out of bounds. This is a 3D platformer that I am tring to make.

I am recieving errors and can not run the game with this script. What am I doing wrong in the code? Please help!

what errors are you receiving?