You should use code tags to format your code in your posts:
Dot product returns a number between -1 and 1.
Your ship needs to be upright to land. You’re comparing the ground normal pointing up, with the ship’s Y axis pointing down (your comment says world Y axis, but it’s local to the ship’s transform). In a perfect landing, they will be opposite and return a -1. So if you require your ship to be within 45 degrees of that, you can check if the dot product is less than -0.5f.