I had this problem with my cats and a stray,like they were sorting out the pecking order.If the stray hasn't been neutered it's natural instinct would be to dominate your cat.I would feed the stray outside and if it does come in for your cats food spray the cat with water.