the sailors working as loggers tried not to stray too far from the ship , hauled over on her beam ends with her masts protruding into the trees , but as time went by they had to venture deeper into the forest inhabited by boars , snakes , spiders and other perils not normally encountered at sea .