I feel like saying:
"The old ship swung to and fro, because of the billowing waves."
is almost synonymous to:
"The old ship swung from side to side, because of the billowing waves."
Of course the difference being "swung to and fro" can mean "back and forth" or "from side to side", but aside being a little more general, it can be "synonymous" in certain context? Am I wrong to say this? What are the other differences I haven't picked up?