While not a 100% accurate history, anyone who thinks Nintendo is trying to help scalpers or drive up demand by creating false shortages needs to go read David Sheff's Game Over - in particular, the chapter on the Game and Watch in the US and how Nintendo felt they got screwed by retailers on unsold units.
Really, anyone who wants to try and analyze anything Nintendo does should read this book.
I personally don't think they were trying to help scalpers or punish their consumers.
One possible outcome left Nintendo holding the bag on unsold units.
Another possible outcome had Nintendo leaving money on the table, a percentage of its customer base dissatisfied, and exposed its most loyal/obsessive fans to price gouging.
It seems Nintendo preferred to err towards leaving money on the table and its customer base assuming more risk in Nintendo's demand calculations. The value of the perceived risk Nintendo mitigated would be good evidence of how it views customers and prices loyalty.
Edit: Another scenario is that Nintendo had a specific revenue target, but that makes for even grimmer inferences from the perspective of a consumer.