They can both be used when discussing guns but more commonly they are used when discussing the parameters of something. Such as the scope of the project or the range of the differences in opinions. In those instances the two are often interchangeable.