How I can do: If player is under < 0.5 y restart game

Hi! Im doing one platform game, when the player falls under 0.5 y I need restart the level, How I can do it?

Thanks!

if (player.transform.position.y < 0.5f){
Application.LoadLevel(“levelName”);
}

thanks friend!