’Tis vain to try each gentler art
To bribe and soothe the thankless heart;
In vain on such is mercy spent;
It yields to naught but punishment.
Through fear alone will Ocean now
A passage o’er his waves allow.
In plain words: Nala says that gentle methods do not work on an ungrateful heart. The Ocean only gave way because Rama threatened him, so only fear made it let them pass.