If coinbase decided to close my account for gambling or some other reason, will I be able to withdraw my funds before they close my account?
No,your account would suspended without the warning as per their terms and conditions which you "Agreed To" while signing up.