Exploring the Role of Primary Mass and Star-forming Environment on the Formation of Stellar and Sub-stellar Multiple Systems