How to implement map bounds for RTS Camera?

But how I create the camera bounds the camera having lag(for smooth moving) ?
I use the 2D Side-Scroller Blueprint Template/