Stop 2D Camera from going too far to the side?

Hi. So I’m extremely new to developing any sort of game(s) and I’m trying to make a basic side scroller type 2D game. Right now I have a camera attached to the player (on a boom arm), and what I would like to have happen is that after the character reaches a certain point in the level (left or right), I want the camera to stop following the character and stay still until the character moves far enough in another direction.

Forgive me if I’m missing something really simple, but I’ve been at this for hours trying to research it and haven’t been able to find anything that would help. Would really appreciate any advice anyone could give! Thanks in advance.