If you don't have consent from an animal's owner, do not interact with the animal. That's not something good that you should do. Instead, get consent first.
You should never under any circumstances interact with an animal unless you have the owners express permission. If you do, it will not be considered a good thing, it will in fact be a bad thing. It is imperative to seek consent first, preferably in writing if the situation allows.