Thing is when it comes time to smoke them you'll be finding ants in the buds.
Boric acid has been used for years some ants know what it is and know better they have adapted.
You may need to use a proper ant-killer, but the easiest thing to do would be to transplant to another pot using clean new soil, shake out your existing rootball to get all the ants off it, then clean the plant up as much as possible. Spray it with Neem oil if you can get it, even the soil, or some "safer" spray "bug off" its organic and safe on buds.

After all of this lay ant POISON granules by the pot, so the ants coming to the pot will find the granules first and take them home and bye bye ants.