Pfizer top-people bought a huge amount of shares before their vaccine was publicly approved and they sold it the moment the public was made aware that there was a vaccine for COVID-19 approved by the FDA
Microsoft bought a lot of Activision Blizzard shares a few days before they announced they would buy the company.
Having this thin line separating what's allowed and what isn't is not ideal. If you have privileged information, for example, that your product will be approved, something that isn't public knowledge, it should be considered insider trading.