Of course the details vary by state, but law enforcement officers are generally granted their powers by the state regardless of the jurisdiction they're employed by. So there may not be a legal limit to their jurisdiction within the state, though practically it's very unusual for them to work...