he knew he could not keep anyone from coming up to him , but he thought that if he made the way difficult , he might have a chance of hearing them and defending himself instead of simply being killed as he slept .