This is a transitive verb (which means – it makes sense if it exerts its action on an object) which means To approach and speak to (someone) in an often challenging or aggressive way
Also, it means – approach and speak to, especially aggressively or insistently, as with a demand or request.
> On way to office, I was accosted by a group of beggars demanding alms.
> He was accosted by three gang members on the railway platform
>His benevolent nature prevented him from refusing any media person who accosted him.