Technically, sticking your head into a ranger's mouth without their consent constitutes an attack. Technically Rick is allowed to digest you in self defense, even if he is the one to decide you don't get to pull your head back out but instead get to wear a sleek new coonskin coat.
Technically legal: The best kind of legal!