Arcana Coelestia#9190
9190. 'Anyone lying with a beast' means being joined to the evils that belong to the desires of self-love. This is clear from the meaning of 'lying with' as being joined to; and from the meaning of 'a beast' as a good affection with people who are good, and an evil affection with those who are evil, dealt with in 45, 46, 142, 143, 246, 714, 715, 719, 776, 2781, 3518, 3519, 5198, 7424, 7523, 7872, 9090, thus evil desires, at this point the desires of self-love. The term 'evil desires' is used to mean evil affections.
Arcana Coelestia#5197
5197. 'And behold, out of the river' means in the boundary. This is clear from the meaning of 'the river' as the boundary, dealt with immediately above in 5196. The reason 'out of the river' means in the boundary is that that was where the cows appeared.