Y axis problems

execute if entity @e[tag=cool] positioned ~ ~..-50 ~ run function (insert function here) How would i make it so that the function only runs when it is below y level -50

Continue to help post