@Anonymous1234567890,
Generally, depending on the size of the critter inside the house (if it is easy to do), I will capture it and/or let it out of my house. A bee I almost always trap it and send it outside. Moderate sized or big spiders, let them outside; however, mostly crawling critters like beetles, I'll step on them. Generally speaking, it's easy enough to open a screen or door and let them out.
Outside, back when I had gardens, I'd either spray or treat the plants with an organic liquid. However if my veggies were getting clobbered, I'd find a stronger method that didn't affect the health of the veggie or me after consuming them.