How can I get my camera to stop following my player when it falls in a certain value -Y axis Unity?

Hello beginner here. So I have a cinemachine camera that follows my player on a 2d platformer game that I’m trying to create… Can you help me figure out how to write the script to make my camera stop following my player based on -y axis value when it is falling.

Here is my current camera behaviour

8217228--1072908--upload_2022-6-19_15-41-54.png

The image below is my desired output. Is there a way I can make my cinemachine camera stop following the targer player falling down also when it hits a certain Y axis value? Thanks in advance
8217228--1072914--upload_2022-6-19_15-45-25.png

8217228--1072911--upload_2022-6-19_15-44-41.png

I assume you currently read out the player position and then move the camera to that position.
You just need to modify this point by checking if its smaller than your minimal value.

You can use Mathf.max(current,minimumHeight) for that.