It's hardly illegal. A gray area definitely, but not expressly illegal.
Buying with the sole intent to resell for profit is not acting as an unlicensed dealer? Please explain to me the difference between that and what a dealer does. Because I think I'm missing something.