This is what worked for me to get the limits for the camera position:
float camExtentV = _cam.orthographicSize;
float camExtentH = (camExtentV * Screen.width) / Screen.height;
Bounds levelBounds = LevelBoundsSpriteRenderer.bounds;
float leftBound = levelBounds.min.x + camExtentH;
float rightBound = levelBounds.max.x - camExtentH;
float bottomBound = levelBounds.min.y + camExtentV;
float topBound = levelBounds.max.y - camExtentV;
↧