I have seen people protecting rams with their own brickwalls and strongboxes so it was impossible even to get to this ram without building your own.
Even palisade would be enough here if besieged village doesn't have anyone who can bash palis without ram