After years of doing this, I pay careful attention to glue squeeze out if it is going to be in an area that I don't want to see it as in your case. I always keep an almost dripping wet paper towel handy while I do my glue ups. If the glue becomes a problem I wipe it up with that wet towel and rewipe 3 or 4 times more being careful to turn the rag after each wipe to prevent reapplying glue that was wiped up with the rag. Flooding the area helps to keep the glue from seeping down into the grain on woods like oak.
Prevention steps can be putting down masking tape to cover the vulnerable area. The problem with this is that if glue seeps under the tape it becomes really tough to remove after the glue cures. Some prescribe to letting the glue set a bit and removing with a stiff scraper or credit card. I don't in particular care for this method as traces of the glue are usually left behind.
After the fact, if I find a glue drip I use a scraper or chisel to "Scrape" the glue away from the spot and retouch with stain. I prefer not to sand the area and restain as the spot your are repairing becomes larger and more noticeable. Scrape only the area that the glue is covering and you will have a smaller repair to make.