The question is as follows:
More than 50% of all people usually drink coffee before breakfast. To check this claim 100 people were chosen randomly and 60 of them declared to have a coffee before breakfast.
Clearly the sample taken confirms that the null hypothesis is correct. Moreover, it is said alternative hypothesis never contains <=, >= or = operators, so even if I set H0: p > 0.5, I shouldn't do Ha: p <= 0.5, which would contradict the sample taken. How should I deal with this problem? Or could that be an error in the question?



I agree with you. To prove a null hypothesis the data MUST contraddict it. If the data spead in favour of the hypothesis to prove there is nothing to prove and $\mathcal{H}_0$ cannot be rejected.