In my experience, strays usually act like that when they’ve got a litter stowed somewhere nearby. We got our most recent rescue from a similar situation; an unusually aggressive cat started hassling folks in the area. Once we got her and the kittens moved into a safer place she started to warm up to us, but it was a long process with a lot of bites.
She is now happily domesticated lol