Shulchan Arukh, Orach Chayim Siman 342
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
כל הדברים שהם אסורים מדברי סופרים לא גזרו עליהם בין השמשות (וע"ל סי' רס"א וס"ס ש"ז) והוא שיהא שם דבר מצוה או דוחק כיצד מותר לו בין השמשות לעלות באילן או לשוט על פני המים להביא לולב או שופר וכן מוריד מהאילן או מוציא מהכרמלית עירוב שעשה וכן אם היה טרוד ונחפז לדבר שהוא משום שבות מותר בין השמשות ומטעם זה מותר לומר בין השמשות לעכו"ם להדליק לו נר לשבת:
It Is Permitted At Twilight to Do Things Forbidden by Chazal By Enactment Everything that was forbidden by the rabbis was not forbidden at twilight (and see above chapter 261 and the end of chapter 307). This is only true if there is some mitzvah involved or it is a pressing circumstance. For example, one is permitted to climb a tree or float on the water in order to bring a lulav or a shofar. Similarly, one can lower an eruv that he made from a tree or take it from the carmelit. Similarly, if one is bothered and anxious about some rabbinically forbidden act (shvut), he is permitted to do it at twilight. For the same reason, one is permitted to tell a non-Jew to light a candle on Shabbat at twilight.