Using a simulation, we found scenarios where AI regulations could be most effective.