A luminous stellar outburst during a long-lasting eruptive phase first, and then SN IIn 2018cnf