I'd imagine like you suggest it depends on their relationship. If their friendly you'd probably be treated as a guest.
Unfriendly tribes could range from rude abuse to physical assault depending on why they don't like each other.
In a lot of ancient societies crossing into another tribes/clans land was done only with intent and respect or to cause trouble.