Limit camera movement

I’m wondering how I can limit this to a certain area.
I’m wanting to only be able to move within my games bounds.
I have ‘Bounds’ set up, however I don’t know how to apply it to the script correctly.
To use them as barriers, in-order to prevent the camera from going past.

The game is a 2DGame for Android.

I know I’d need something like this:

public Transform farLeft;  // End of screen Left
public Transform farRight;  //End of Screen Right

But how do I apply it to the code I have?

public class startCam : MonoBehaviour {
	public float speed = 0.1F;
	void Update() {
		if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved) {
			Vector2 touchDeltaPosition = Input.GetTouch(0).deltaPosition;
			transform.Translate(-touchDeltaPosition.x * speed);
		}
	}
}

It’s as simple as checking if camera x position is nor higher/lower than border position, like this:

public class startCam : MonoBehaviour {
	public float speed = 0.1F;
    public Transform farLeft;  // End of screen Left
    public Transform farRight;  //End of Screen Right
	void Update() {
		if (Input.touchCount > 0 && Input.GetTouch(0).phase == TouchPhase.Moved) {
			Vector2 touchDeltaPosition = Input.GetTouch(0).deltaPosition;
			transform.Translate(-touchDeltaPosition.x * Time.deltaTime*speed, 0, 0);

			if(transform.position.x > farRight.position.x)
				transform.position = new Vector3(farRight.position.x, transform.position.y, transform.position.z);

			if(transform.position.x < farLeft.position.x)
				transform.position = new Vector3(farLeft.position.x, transform.position.y, transform.position.z);
		}
	}
}

This limits the movement range using mathf.clamp

public Vector3 boundsMax;
public Vector3 boundsMin;

void Update () {
transform.position = new Vector3 (Mathf.Clamp (transform.position.x, boundsMin.x, boundsMax.x), Mathf.Clamp (transform.position.y, boundsMin.y, boundsMax.y), Mathf.Clamp (transform.position.z, boundsMin.z, boundsMax.z));
}

You can replace boundsMin and boundsMax with farLeft.position and farRight.position. But as I do not know how are these bounds objects are placed, I decided to just write it using Vector3. Put this code after translation and it will prevent object from exceeding limits.

Edit: I just read that you are working on 2D game, so clamping z coordinates is not really needed.