You are correct. Neighbors responsibility to keep their dog on their property, not yours.
In many places, though perhaps no longer most places here in the US, a dog off leash and off property is considered "at large", and can be taken* if its attacking livestock.
*taken may mean be...