Bronsted-Lowry theory states that an acid is a molecule that will drop off H+ ions, and a base is a molecule that will pick them up again.
For example,
H2O+HCl→H3O++Cl−
In this situation, water is gaining a proton (H+ ion), so it is a base, while HCl is giving one away, so it is an acid, according to Bronsted-Lowry theory. This is because HCl is a stronger acid than H3O+.
However, in rare cases, it shouldn't be ruled out that HCl can be amphoteric, meaning it can act as an acid or a base. For example, in the reaction
HBr+HCl→Br−+H2Cl+
then hydrochloric acid is accepting a proton, meaning it is acting like a base. This is only plausible because HBr is a stronger acid.
But it depends on the pKa of H2Cl+ relative to HBr. If the pKa of HBr is higher, then the reaction wouldn't go to completion, as Br− would then want to grab a proton from H2Cl+.