"It will hold you. But it is more treacherous than you are. It may twist your words. Beware!"But Gollum did swear by the One Ring. His words were:
"To be very, very good," said Gollum Then crawling to Frodo's feet he grovelled before him, whispering hoarsely: a shudder ran over him, as if the words shook his very bones with fear. "Smeagol will swear never, never, to let Him have it. Never! Smeagol will save it…"Concerning the oath that Gollum made, Frodo later told him,
--"The Taming of Smeagol", The Two Towers
"But I warn you, Smeagol, you are in danger."The command had been stated in the manner that if Frodo were wearing the Ring it would be in effect.
"Yes, yes, master!" said Gollum. "Dreadful danger! Smeagol's bones shake to think of it, but he doesn't run away. He must help nice master."
"I did not mean the danger that we all share," said Frodo. "I mean a danger to yourself alone. You swore a promise by what you call the Precious. Remember that! It will hold you to it; but it will seek a way to twist it to your own undoing. Already you are being twisted. You revealed yourself to me just now, foolishly. Give it back to Smeagol , you said. Do not say that again! Do not let that thought grow in you! You will never get it back. But the desire of it may betray you to a bitter end. You will never get it back. In the last need, Smeagol, I should put on the Precious; and the Precious mastered you long ago. If I, wearing it, were to command you, you would obey, even if it were to leap from a precipice or to cast yourself into the fire. And such would be my command. So have a care, Smeagol!"
--"The Black Gate is Closed", The Two Towers
"Begone and trouble me no more! If you touch me ever again, you shall be cast yourself into the Fire of Doom."
--"Mount Doom", The Return of the King