For rental, scams may be that the 'agent' is not acting legally for anyone and simply aims to get the 1 month deposit out of you, before disappearing. Also make sure that you aren't dealing with a broker, who will demand a fee from you and possibly threaten you if you don't pay. Avoid OLX, Facebook Marketplace and so on in your property search.
Always go to a property real estate agent such as Villa Care, Hass Consult, Knight Frank, Pam Golding, Ryden, to name a few. Decide which areas you would like to live in and set aside a day or two to view properties. Always view properties in person.
For buying, probably the most common scam involved fake titles, with someone posing as the seller, or sellers representative. As with any con, the set up is very convincing. The aim is to get the initial 20% deposit out of the prospective buyer, before the 'seller' vanishes. A defence against this would be to obtain a copy of the title and carry out a search against it, with land registry. If it is a broker that you are dealing with, insist on being put in contact with the seller.
Searches are also vital to ensure that the property you are buying is not on government reserve land, such as a road, or river reserve. It will also help to safeguard against buying a title that was 'stolen' years ago - even if your transaction is seemingly legal, the fact that the land/property was stolen in the first place, makes all transactions from that point illegal and invalid.
Brokers; there could be a chain of them involved in the sale of a property. They are more of a concern for the seller. They often advertise online. They will be reluctant to give you (as the buyer) the sellers details and if this is the case, be prepared to walk away. The better brokers would rather give you the details you have asked for, than see their commission vanish before their eyes.
The deposit: Generally paid when the sales agreement is signed. Ensure that the money is safeguarded, by doing something like opening a joint account with both parties to sign. Don't give to a lawyer, as is the practice in some countries - it may disappear.
Lawyers; get a lawyer with a good reputation - they will charge commission of approx 1 - 2% of the sale price, according to Law Society regulations.
It should be noted that foreigners cannot buy freehold titles, or land listed as 'agricultural'. A lawyer who tells you that you can is not being honest.