Can I use travis CI to check source branch of merge and only allow specific source branches=

As title, I am trying to use travis to do some more advanced branch protection and want it to run a check on pull requests into our production branch and fail if the pull request comes from any branch other than development.

Any ideas how to go about this?

Many Thanks