Have clamp throw a DomainError if interval is poorly defined

One possible solution to #8006 
Can we be a bit more informative explanatory here in throwing the exception?