Your profile says "NSW, Australia," so I started looking for laws that apply there.
I found this:
https://www.police.nsw.gov.au/safety_and_prevention/crime_prevention/rural_crime/straying_stock_on_public_roads
There are links to some infographics and fact sheets
I think they say that if you...