Scots have a legal responsibility to keep dogs under control