You know what? Just because it's legal doesn't make it right.
If too many people do this, then the policy will change, and ruin it for everyone else.
You pay an annual membership so that costco can locate their businesses in cheap areas zoned for wholesale/warehouse outfits, not regular retail, saving them a ton of money. They have to charge you a membership fee - it's members only shopping.