The expression "by fair means or foul" means that someone will achieve their goal using any method possible, whether that is through honest and ethical ways or through deceitful and immoral means. It is often used in situations where someone is so determined to achieve their objective that they are willing to do whatever it takes, even if it is unethical or illegal.