Camera Bounds

Sorry if this is a stupid question, but I couldn’t find it anywhere in the documentation or forums and couldn’t get it to work by experimenting. I want to know how to do camera bounds, just really easy, I want it to stop at a certain point on the terrain. I don’t really care if it’s with collision or axis. Can anyone give me a lead to something like this?

I think you look for that:

Also i think this might be interesting to read for you:

That code looks just a tat too hard for me… I guess I’m looking for a more practical approach. I tried making a view cubes and gave my camera a collider, but that doesn’t seem to work.