You're justifying your own unethical behavior by painting yourself as a rational economic agent, when you could also just not buy more than necessary and leave some for other people.
If everyone does that at the same time, you'll have a shortage.
One thing that might limit the shortage is higher prices, as it makes people purchase less, and incentivizes production and delivery.
One thing that most definitely will not help the shortage is limiting the price increases (i.e. price gouging laws).