Dynamical Constraints on the Origin of Hot and Warm Jupiters with Close Friends