Your monthly limit is based on your salary. The only times you cannot buy is during Ramadan and certain holidays - all are well posted in advance at the bottle shop.

You have to drink discretely in any event. Public drinking/intoxication can land you in jail.

Also be discrete in transporting the stuff - Qatar is very tolerant of foreigners but the police will act on complaints if you behave stupidly.