save the game
get banished by the institute
desdemona might tell you to ask for help from preston garvey , if it doesn't then just do the brootherhood questline u won't miss anything
off topic - if u are brootherhood why are u protecting the railroad , if the synths escape then that goes directly against what the BoS are there for ( wipe out synths + institute )