I remember seeing stories about programmers with access to credit card databases getting indicted for trading on the information. This is a legal version of the same thing, and also probably any attempt to make it illegal would be unenforceable.
I see it as just a quantified and scaled up version of, say, noticing more Tesla cars on the street, and choosing to invest. I think making something like that illegal would only be harmful to the stock market and investors.