Answer: A Fence.
More Tricky Riddles with answers
Previous: What relation would your father's sister's sister-in-law be to you?
Next: What spends all the time on the floor but never gets dirty?