I don't think I understand what you mean? You will always look through the camera. Why would you move it outside the borders?
Anyway since im not 100% sure what you mean this might be way off, what you need But then you can just ignore it.
But if you make the layout lets say 2000px wide.
Then you make a check that "if player.X < than 200" then he cant move further that way, and then you do the same on the other side "if Player.x > than layout.width - 200". Then you would have 200 px on each side. Maybe then the camera can shake.
Anyway as I said not sure its what you refer to