Is a letter of guarantee written by a cheating man valid in court?

Legal subjectivity:

If the letter of guarantee written by the husband after his affair complies with the provisions of the law, it is the husband’s true expression of intention and has legal effect. A letter of guarantee is equivalent to a contract signed by both parties. A contract that meets the conditions will take effect upon its establishment. If all the contents of the letter of guarantee issued by the husband stipulating the division of property do not exceed the scope of the joint property of the husband and wife, and there is no situation of coercion, it will generally be legally effective, and the letter of guarantee will be effective with conditions. According to Article 502 of the Civil Code, a contract established in accordance with the law shall take effect from the time of its establishment, unless otherwise provided by law or otherwise agreed by the parties. Legal objectivity:

Article 502 of the "Civil Code" A contract established in accordance with the law shall take effect from the time of establishment, unless otherwise provided by law or otherwise agreed by the parties.