This link is to a website in the U.S. but the common sense suggestions should work equally well in Costa Rica – basically don’t make your yard attractive to snakes! Since I scared people with my Terciopelo articles, I thought I would balance it out with this link to a snake free yard:
https://www.fieldecology.com/blog/snakes-away