This has nothing to do with temps, and everything to do with genetics.
Reducing the daylength by bringing the plant into a dark place an hour or two before sunset can reduce the re-flowerings if you are limited by time, otherwise let the plant do its thing naturally and in 2-3 weeks, harvest as normal.