how to block a camera pawn so it doesnt go too far away from actor?

i’m trying to make bounds on the X and Y axis, i was able to generate box collisions and block it for a while but after a certain value the camera clips out of bounds like this
2024-03-03 22-44-35.mkv (13.3 MB)