Test if the Player is touching the Edge of the Screen

How can I test if the Player is touching the edge of the Screen? I want to do a Celeste (The game) Camera effect where the Camera moves to the next section when the Player touches the edge of the Screen. Thank you People further in advance!

Have a look at this recent, similar thread. Instead of changing scenes, move the camera to the next section.

Yeah I know that I need a collision object that is on the edge of the screen but how do I make it move with the Camera?

With the event in which the camera moves, add a sub-event to place the object to 1/2 screen width left or right, and 1/2 screen height above or below.