Everyone, who has worked in the book industry for a significant period of time, is aware of the counterfeit books problem. So when you source books not directly from a publisher, e.g., buy used books from the general public, organizations, or even Amazon, you need to check if the books you purchase are genuine.
It is important to distinguish between counterfeit books and international or Eastern Economy editions, which are produced legally. Counterfeit books are produced illegally and are often sold by third-party sellers on various marketplaces, including the biggest ones. Like all pirated copies of copyrighted works, they are against the law.