Smart doggy knows not to cross cat's invisible line