Don’t trust the airlock! A brew may release CO2 gas even though fermentation activity has effectively ceased. The brew is okay to bottle once the specific gravity (measured with a hydrometer) is stable over 2 days.