It’s off AND on base.
I guess it’s impractical to do breathalyzer tests on exit from the base.
Some idiot could still get soused though, once out. I have a buddy who is a Marine who told me a nightmare story about an acid trip, off base.