How does it know? Because it is an ITIN and not a SSN. They have different number ranges.
**Disclaimer: This post is for discussion purposes only and is NOT tax advice. The author takes no responsibility for the accuracy of any information in this post.**