I can resist everything except temptation.
Oscar Wilde (1854-1900) Irish poet, wit, dramatist
Lady Windermere’s Fan, Act 1 [Lord Darlington] (1893)
(Source)
Also attributed to Mark Twain, Mae West, and W. C. Fields. The sentiment may not be original to Wilde, but his use popularized it.