I think.......the answer is going to be, on the legs of hive stand, if they can't get up, they can't get back down.
Another good way to stop Ants.......INSTANTLY, DEAD IN THEIR TRACKS........Windex, kills on contact.
Surely, you are not going to spray this IN your hive, but you can spray it on the legs, or if there is an Ant mound nearby where the Ants are coming from, dump straight Windex down the hole.
If you find then on your floor or kitchen counter, or anywhere around the house, spray Windex on them, kills instantly........at least you are not spraying pesticide/poison........Windex also kills Termites on contact.