#7805

Fixed the bug by returning False when the method _contains of an Interval gets another Interval
Use isinstance.

Also, I'm not sure that we want special case only for the Interval, what about FiniteSet or Range?  This type check might make sense in the Set.contains.

And you should add tests.  See https://github.com/sympy/sympy/wiki/Development-workflow