The correct procedure if you thought the experiment posed an imminent danger to the crew would have been to erect a force field around the container until any ill effects could be scientifically determined.
You also violated Starfleet protocols which require us to not interfere with developing cultures.