It is a mitzvah to add from the weekday onto the sacred, and to refrain from melachah even two minutes before sunset. As the Rambam and Maran the Shulchan Aruch wrote, rabbinic prohibitions were not decreed for bein hashemashot where there is a mitzvah or a pressure, but lighting a lamp or a plata is forbidden from the Torah. From the booklet Shabbat baHalachah ubaAgadah of Rabbi David Shalom Naki, shlit"a.