gh-35113: added check for invalid range in contour_plot and derivatives
### 📚 Description
Solves #35032
Add if condition in misc.py which contour_plot uses to check for invalid
range entered by user(xmin > xmax or ymin>ymax)
### 📝 Checklist
- [x ] I have made sure that the title is self-explanatory and the
description concisely explains the PR.
- [ x] I have linked an issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.
URL: https://github.com/sagemath/sage/pull/35113
Reported by: Agamdeep Singh
Reviewer(s): Agamdeep Singh, Kwankyu Lee